6.

グリッド線

編集

これはMatplotlibのグリッド線の描画に関する記事です。

 

構文

grid(True)

 

import matplotlib.pyplot as plt

x = [2, 4, 8]
y = [3, 9, 6]
plt.plot(x, y)

plt.grid(True)

plt.show()
 

 

結果出力

 

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. 線グラフ
  2. 棒グラフ
  3. 円グラフ
  4. 散布図
  5. タイトルと軸のラベル
  6. グリッド線