matplotlib.pyplot.subplots() 関数 は、Figure(matplotlib.figure.Figure クラスのインスタンス)と、Axes (matplotlib.axes.Axes クラスのインスタンス)、または Axes の配列を生成し、返り値として返します。 Figure はキャンバス、Axes はx軸、y軸 を持ち、その中にデータが ...
最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 オブジェクト指向な ...
import matplotlib.pyplot as plt fig=plt.figure(1) ax1=fig.add_subplot(1,2,1) ax1.loglog(range(10)) ax2=fig.add_subplot(1,2,2, sharex=ax1) ax2.loglog(range(10)) fig.clf() Throws a warning: UserWarning: ...
I'm trying to create a custom colorbar (hence the code below is loosely based on this post), and while creating the data and colorbar itself works fairly well, I'm having trouble aligning the colorbar ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する