User Tools

Site Tools


python:matplotlib:基本的な使い方

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 sin.py>
 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()
 </file> </file>
 +
 +できたら<code>$ python sin.py</code>を実行するとグラフが表示されます。
  
  
python/matplotlib/基本的な使い方.txt · Last modified: 2021/06/27 22:04 (external edit)