最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 オブジェクト指向な ...
matplotlibで棒グラフを書く方法はいくつかあるので、まとめてみました。 ①matplotlib.pyplot.bar matplotlib.pyplotはpltにするので、いわゆるplt.bar ()。
In the current implementation of Axes.grouped_bar, calling the function with label or color keyword arguments can result in a TypeError: matplotlib.axes._axes.Axes.bar() got multiple values for ...