You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Add rc setting to control dash spacing #3645
When scaling the figure size the default dash spacing produced by commands like
``plt.plot(x, y, '--')does not look good and has to be scaled down. Using thedashes` keyword argument this is possible, but requires to repeat this for every plotting command.
Therefore, I propose to add an rc setting to control the dash spacing for the default line styles globally.
The dashes do not scale with the line width. I've often thought that was less than ideal. i.e. the dash "units" should be a factor of "linewidth", not in points as they are now.
Obviously a very backward incompatible change, but certainly worthwhile.
Yes, the dashes not scaling with the line width (or figure size) is the the problem. I'm not sure whether the dependence should be on line width or figure size. In my view it would already be an improvement to set the dash spacing globally which could be achieved in a backwards compatible way. Of course automatic scaling would be even nicer as it would be less configuration hassle.
Activity
tacaswell commentedon Oct 14, 2014
can you elaborate on what you mean by 'does not look good'?
jenshnielsen commentedon Oct 14, 2014
As far as I remember the dashes are reasonable at the default line width but do not scale well when the line width is changed. Is that the issue?
mdboom commentedon Oct 14, 2014
The dashes do not scale with the line width. I've often thought that was less than ideal. i.e. the dash "units" should be a factor of "linewidth", not in points as they are now.
Obviously a very backward incompatible change, but certainly worthwhile.
jgosmann commentedon Oct 14, 2014
Yes, the dashes not scaling with the line width (or figure size) is the the problem. I'm not sure whether the dependence should be on line width or figure size. In my view it would already be an improvement to set the dash spacing globally which could be achieved in a backwards compatible way. Of course automatic scaling would be even nicer as it would be less configuration hassle.
QuLogic commentedon Sep 9, 2016
Dash scaling was introduced by #5926.