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 ...
The documentation for matplotlib.pyplot.figure shows the wrong type for the figsize argument's tuple -- it is float but instead the docs say integer. figsize : tuple of integers, optional, default: ...