グラフを書くときの軸の設定です。 プロット範囲をmatplotlibに任せるには、'auto'、'equal'、'tight'、'scaled'のどれかを引数にして、axis関数を呼び出します。 xticks,yticksを使えば、座標軸に文字列を使ったり、グリッドの間隔を指定できます。 サンプル画像 ソースファイル # -*- coding: utf-8 -*- from pylab import * R = 1.2 A = 1.2 I1 = arange(0,2*pi,0.01) I2 = arange(0,4*pi,0.01) axis_options = ['auto', 'equal', 'tight', 'scaled'] def plot_circle(n): opt = axis_options[n] subplot(2,2,n) title(opt) plot(A * s
![matplotlibで軸を制御する - ぱたへね](https://cdn-ak-scissors.b.st-hatena.com/image/square/7c6f14992f83af549b247dd8737e457bae691101/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fn%2Fnatsutan%2F20110715%2F20110715162834.png)