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 examplescould 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
.mplstyle
for this, and allow the user to override it with their own.A good rule I think would be:
rhos
must not modifyplt.rc
/plt.rcParams
examples
could modifyplt.rc
, but really should be usingplt.usestyle
insteadSometimes 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. settingHelvetica
as the font in the legend would not be needed)