Skip to content

Proposal: Add rc setting to control dash spacing #3645

Closed

Description

@jgosmann

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.

Activity

  1. added this to the milestone on Oct 14, 2014
  2. tacaswell commented on Oct 14, 2014

    @tacaswell
    Member

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

  3. jenshnielsen commented on Oct 14, 2014

    @jenshnielsen
    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?

  4. mdboom commented on Oct 14, 2014

    @mdboom
    Member

    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.

  5. jgosmann commented on Oct 14, 2014

    @jgosmann
    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.

  6. QuLogic commented on Sep 9, 2016

    @QuLogic
    Member

    Dash scaling was introduced by #5926.

  7. modified the milestones: , on Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions