最近,研究活動(おもに実験)で得たデータを計算したり,可視化するのに使っているPython。可視化(グラフ作成)に使うMatplotlib(Seaborn)の使い方をすぐ忘れてしまうので,自分のために書き留めておこうと思う。 x = np.linspace(1,100,100) y = x**2 一番簡単なプロット ...
tanのグラフをmatplotlibを使って描くためには、少し工夫が必要です。何も工夫をしないと次のようなおかしなグラフになってしまいます。 import numpy as np import matplotlib.pyplot as plt N = 100 theta = np.linspace(-2*np.pi, 2*np.pi, N) tan_ = np.tan(theta) fig ,ax ...
Matplotlib is perhaps the most popular Python plotting library. Many libraries build on top of Matplotlib (example: Seaborn). MATLAB users will feel familiar. Even if you choose to use another library ...
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: mplot3d The ax.invertxaxis() and ...
今回は、前回導入したNumpy、 そしてグラフを描画するmatplotlibを使って、 いくつかの代表的な分布を紹介していきます。 第5回 「 「よく使う分布」 はどうしてよく使う?」 の項でも代表的な分布が紹介されていました。そこでは、 “⁠この状況 (モデル ...