2017-04-26 13 views

答えて

1

のように見えるの伝説をしたい、マーカーを作るためにFalseに設定することができmarkerfirst引数があります最後に表示されます。

plt.legend(markerfirst=False) 

全例:

import matplotlib.pyplot as plt 

for i in range(3): 
    plt.plot([1,2,3],[3-i, i/3., i], marker="o",label="label {}".format(i)) 

plt.legend(markerfirst=False) 
plt.show() 

enter image description here

関連する問題