Reputation: 191
In the legend I drew, the dashed symbol is a little bit longer, as follows(in blue circle):
How to reduce that extra bit?
Upvotes: 0
Views: 333
Reputation: 13041
The relevant parameter is called handlelength
:
plt.plot(range(5), range(5), label='lorem ipsum')
plt.legend(handlelength=10)
plt.show()
Upvotes: 1