-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Proposal: Add rc setting to control dash spacing #3645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
can you elaborate on what you mean by 'does not look good'? |
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? |
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. |
Dash scaling was introduced by #5926. |
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 the
dashes` 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 text was updated successfully, but these errors were encountered: