2016-01-22 62 views

回答

1

你可以使用 axes.set_ylim([YMIN,YMAX]) 選擇你Ÿ變焦 更普遍地看到http://matplotlib.org/examples/pylab_examples/manual_axis.html 一個詳細的例子。

+0

這不是我想要的。當前y軸在屏幕上的實際尺寸爲1.5釐米。但我的目標是使它3釐米或4釐米。 –

+1

您的意思是說您的matplotlib屏幕尺寸與顯示器尺寸的比例有問題嗎?如果是這樣,我認爲figsize在這裏解決http://stackoverflow.com/questions/332289/how-do-you-change-the-size-of-figures-drawn-with-matplotlib – MathBio