最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 オブジェクト指向な ...
ごくたまに使いたくなるので、テーブルの使い方もメモしておきます。bboxを指定して、axesの中いっぱいに表示するスクリプトです。見た目を変えるためのスクリプトも後半に6行ほどいれてます。 table系の関数は、個人的には予想外の動作をすることが多く ...
I'm making many plots in a loop using the same Figure and Axes. The basic setup including a twin Axes is done once and the Axes are cleared at the end of the loop using cla(). Axes.cla() resets the ...
Artist provides the label API intended to for legend labels: However, only a small subset of Artists are "data" Artists and can be reasonably used in a legend. From the subclasses of Artist: suitable ...