1. はじめに:Pythonデータ可視化の王道「Matplotlib」とは Pythonでデータ分析や機械学習を学ぼうとすると、必ずと言っていいほど耳にするのが「Matplotlib(マットプロットリブ)」というライブラリの名前です。Matplotlibは、Pythonにおけるデータ可視化の ...
最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っている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 ...