This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
python:matplotlib:基本的な使い方 [2018/01/21 02:21] koudai [初めてのプロット] |
python:matplotlib:基本的な使い方 [2021/06/27 22:04] (current) |
||
---|---|---|---|
Line 44: | Line 44: | ||
y1 = np.sin(x) | y1 = np.sin(x) | ||
y2 = np.cos(x) | y2 = np.cos(x) | ||
- | |||
- | plt.title(" | ||
- | plt.xlabel(" | ||
- | plt.ylabel(" | ||
- | |||
- | plt.plot(x, y1, label=" | ||
- | plt.plot(x, y2, label=" | ||
- | plt.legend() | ||
plt.xlim(-np.pi, | plt.xlim(-np.pi, | ||
Line 75: | Line 67: | ||
x = np.arange(-5, | x = np.arange(-5, | ||
y = np.sin(x) | y = np.sin(x) | ||
+ | |||
plt.title(" | plt.title(" | ||
plt.xlabel(" | plt.xlabel(" |