Skip to content

Don't force your matplotlib style on me #35

Description

@edbennett

Users of the library may want to use their own Matplotlib styles, which may conflict with the ones you set.

If you want to provide a default style for the executables, then define a .mplstyle for this, and allow the user to override it with their own.

A good rule I think would be:

  • Anything in rhos must not modify plt.rc/plt.rcParams
  • Anything in examples could modify plt.rc, but really should be using plt.usestyle instead

Sometimes there may be reasons to override the style, but this should not be done via plt.rc, and should only be when strictly necessary (e.g. setting Helvetica as the font in the legend would not be needed)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions