This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
python:matplotlib:基本的な使い方 [2018/01/21 00:25] koudai |
python:matplotlib:基本的な使い方 [2018/01/21 00:32] koudai [データのプロット] |
||
---|---|---|---|
Line 41: | Line 41: | ||
plt.plot(x, y) | plt.plot(x, y) | ||
- | plt.savefig(" | + | plt.savefig(" |
</ | </ | ||
Line 59: | Line 59: | ||
* tiff | * tiff | ||
です。 | です。 | ||
- | formatを指定しない場合、ファイル形式は拡張子により自動判別されます。 | + | ファイルの種類は拡張子により自動判別されます。 |
Line 107: | Line 107: | ||
plt.title(" | plt.title(" | ||
plt.xlabel(" | plt.xlabel(" | ||
- | plt.ylabel(" | + | plt.ylabel(" |
plt.plot(x, y) | plt.plot(x, y) | ||
Line 167: | Line 167: | ||
import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
- | x = [1, | + | x = [1,2,3, 4, 5, 6, 7, 8, 9, 10] |
- | y = [1, | + | y = [1, |
plt.title(" | plt.title(" |