公開:2025-04-01、更新:2025-04-01
3-10「pip」 5ページ
マンガ

5
コンテンツ紹介
テキスト原稿
# 5p
__1__
猫野:
Pythonで
よく使われる
グラフを作る
パッケージを
使ってみよう
__2__
ターミナル
pip install matplotlib
main.pyを作りプログラムを書く
import matplotlib.pyplot
x = [1, 2, 3, 4, 5]
y = [5, 10, 15, 10, 20]
matplotlib.pyplot.plot(x, y)
matplotlib.pyplot.show()
---
__3__
main.pyを実行する
python main.py
(結果表示)
グラフが表示される
__4__
猫野:
こんな風に
公開されている
パッケージを使えば
簡単に処理が書ける