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)
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
.mplstylefor this, and allow the user to override it with their own.A good rule I think would be:
rhosmust not modifyplt.rc/plt.rcParamsexamplescould modifyplt.rc, but really should be usingplt.usestyleinsteadSometimes 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. settingHelveticaas the font in the legend would not be needed)