最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 一番簡単なプロット ...
Matplotlibは可視化用ライブラリです。グラフ化することで傾向が理解出来たり伝えたいことを一目で理解させることができます。 matplotlibでは様々な図がかけますが本記事では折れ線図をメインとして使用して「サクッときれいな図を複数作る」ことに重きを ...
I've been plotting timeseries data using the matplotlib.dates module and have come across an issue when using it in conjunction with the subplot command. For figures with greater than one subplot in a ...
Specifying sizes directly makes it easier to achieve consistent ax sizes across figures. Suppose you're plotting various time series data and you would like consistent inches / week on your x axis. Or ...
Matplotlib mistakes often come from poor layout, unclear labels, and wrong scale choices, not from the data itself. Clear plotting improves when scatter plots and large datasets are simplified for ...