2017-10-26 13 views
0

コード:matplotlibのpyplot.plot()マーカ色

plt.plot(x,"g.") 
plt.show() 

が生成: enter image description here

私は別の方法で色を指定するときに、行が追加される。

plt.plot(x,"darkgreen",marker=".") 
plt.show() 

enter image description here

私はラインは必要ありません。ラインをプロットに追加せずに、どのようにして1文字コードとは別の色を使用できますか?

答えて

1

設定linestyle"None"へ:

plt.plot(x,color="darkgreen",marker=".", linestyle="None")