Lets say i’m plotting a line with matplotlib and add a legend.
Within the legend it says ------ Label. I find the default horizontal length of this line a bit too long when plotting small figure sizes for print.
Is there a property to set ------ Label to --- Label?
When you create your legend add the
handlelengthkeyword (doc) which sets the length of the ‘—‘ (which is called the handle).