python:matplotlib:基本的な使い方
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
python:matplotlib:基本的な使い方 [2018/01/21 01:29] – [初めてのプロット] koudai | python:matplotlib:基本的な使い方 [2018/01/22 20:13] – [グラフの表示範囲の指定] koudai | ||
---|---|---|---|
Line 29: | Line 29: | ||
{{: | {{: | ||
- | 保存するにはグラフが表示されたウィンドウの上の方にあるフロッピーディスクのマークをクリックします(Ctrlキーを押しながらsを押すのでも可)。 | + | 保存するにはグラフが表示されたウィンドウの上の方にあるフロッピーディスクのマークをクリックします([Ctrl-s]も可)。 |
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, |
python/matplotlib/基本的な使い方.txt · Last modified: 2021/06/27 22:04 by 127.0.0.1