2015-12-04から1日間の記事一覧

<Python, matplotlib> pyplot.xlim()

pyplot.xlim()を引数無しで呼び出すと、現状の値を返してくれる。 へー。。。 In [43]: plt.xlim() Out[43]: (720.0, 770.0) In [44]: plt.xticks() Out[44]: (array([ 720., 730., 740., 750., 760., 770.]), <a list of 6 Text xticklabel objects>) こいつは、ax.get_xlim()だね。 In [46]: ax.</a>…