До сих пор у меня есть следующий код:
colors = ('k','r','b')
ax = []
for i in range(3):
ax.append(plt.axes())
plt.plot(datamatrix[:,0],datamatrix[:,i],colors[i]+'o')
ax[i].set(autoscale_on=True)
С опцией autoscale_on=True
для каждой оси я думал, что каждый график должен иметь свои собственные границы оси y, но, похоже, все они имеют одинаковое значение (даже если они имеют разные оси). Как установить их для масштабирования, чтобы показать диапазон каждого datamatrix[:,i]
(просто явный вызов .set_ylim()
?). А также, как я могу создать смещенную ось y для третьей переменной (datamatrix[:,2]
), которая могла бы быть выше? Спасибо всем.