python でグラフを作成するとき、日本語を利用する方法のメモ書きです。 matplotlib、 seabornを使ってグラフを作成すると日本語が文字化けし表示できないときは、 matplotlibが使用するフォントを変更 すればよい。 一番簡単な方法 japanize_matplotlib を、import する ...
最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 一番簡単なプロット ...
I grew tired of having to convert my units just for the sake of specifying the figure size. I'd like to specify the figure size directly in a metric unit, nominally centimeters (or millimeters, no ...
If I change the size of a figure in the cell where I have %matplotlib ... the change is not effective. %matplotlib inline import matplotlib.pyplot as plt plt.rc('figure', figsize=(10,2)) plt.plot((0,1 ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する