2017-05-20 6 views
2
plt.plot([2,5],[0,0], marker='^', markersize= 15, fillstyle='none') 

enter image description herematplotlibでマーカーをオフセットする方法は?

ラインは、三角形の上部に触れるように、マーカーはほんの少し下るようにする最も簡単な方法は何ですか?

私はちょうど下の画像のようにビームをプロットしようとしているが、私はしても、マーカーを配置することはできません右笑 enter image description here

答えて

3

あり一つですが、塗りつぶされたマーカーで、marker docを参照してください。

plt.plot([2,5],[0.3,0.3], marker=6, markersize= 15, fillstyle='full') 

enter image description here

enter image description here

関連する問題