7.

編集

これはMatplotlibのグラフの色の設定に関する記事です。

 

構文

plot(x, y, color="色の種類")

 

import matplotlib.pyplot as plt

x = [1, 2, 3]
y = [2, 6, 4]

plt.plot(x, y, color="red")

plt.show()
 

 

結果出力

編集
Post Share
子ページ

子ページはありません

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