This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
python:matplotlib:基本的な使い方 [2018/01/20 21:49] koudai |
python:matplotlib:基本的な使い方 [2018/01/20 21:52] koudai |
||
---|---|---|---|
Line 10: | Line 10: | ||
===== sin関数のプロット ===== | ===== sin関数のプロット ===== | ||
- | <file python> | + | matplotlibをインポートすることで、グラフの作成を行えるようになります。 |
+ | 次のスクリプトを作成します。 | ||
+ | |||
+ | <file python | ||
import numpy as np | import numpy as np | ||
import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
Line 20: | Line 23: | ||
plt.show() | plt.show() | ||
</ | </ | ||
+ | |||
+ | できたら< | ||