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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
python:matplotlib:基本的な使い方 [2018/01/20 23:44] koudaipython:matplotlib:基本的な使い方 [2018/01/20 23:48] – [データのプロット] koudai
Line 163: Line 163:
 plt.ylabel("y") plt.ylabel("y")
  
-plt.plot(x, y, label="sin x")+plt.plot(x, y)
  
 plt.show() plt.show()
-</pyrhon>+</file>
  
 {{:python:matplotlib:intro5.png?direct&400|}} {{:python:matplotlib:intro5.png?direct&400|}}
  
 各データは直線で結ばれます。 各データは直線で結ばれます。
-もし点だけにしたいなら<file python>plt.plot(x, y, label="sin x", "o")</file>とします(oは丸い点の意味です。その他については別のページで解説します)。+もし点だけにしたいなら<file python>plt.plot(x, y, "o")</file>とします(oは丸い点の意味です。その他については別のページで解説します)。
  
  
python/matplotlib/基本的な使い方.txt · Last modified: 2021/06/27 22:04 by 127.0.0.1