最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 一番簡単なプロット ...
If True, the label will be aligned with the slope of the line at the location of the label. If False, they will be horizontal. xvals: (xfirst, xlast) or array of float, optional The location of the ...
matplotlibでは、デフォルトでグラフタイトルや軸ラベル等に日本語を表示させることはできません。(文字化けします。)原因は、デフォルトで指定されているフォントが日本語を表示できないからです。 matplotlib で指定されているフォントの確認方法は以下 ...