Skip to content
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

Proposal: Add rc setting to control dash spacing #3645

Closed
jgosmann opened this issue Oct 14, 2014 · 5 comments
Closed

Proposal: Add rc setting to control dash spacing #3645

jgosmann opened this issue Oct 14, 2014 · 5 comments

Comments

@jgosmann
Copy link

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.

@tacaswell tacaswell added this to the unassigned milestone Oct 14, 2014
@tacaswell
Copy link
Member

can you elaborate on what you mean by 'does not look good'?

@jenshnielsen
Copy link
Member

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
Copy link
Member

mdboom commented 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
Copy link
Author

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
Copy link
Member

QuLogic commented Sep 9, 2016

Dash scaling was introduced by #5926.

@QuLogic QuLogic closed this as completed Sep 9, 2016
@QuLogic QuLogic modified the milestones: 2.0 (style change major release), unassigned Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants