You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Style files (actually, style dicts) can be distributed as python packages, as discussed e.g. in #14943 (comment). This has the advantage of being relatively easy to do and that it works "as is" for essentially all versions of matplotlib (if your matplotlib is too old to have matplotlib.style.use (pre 1.5...) you can still use rcParams.update(style_dict)).
It was also pointed out during the call that this approach makes it easy to distribute colormaps together with the style, or add any additional custom logic; this may be worth documenting too.
The text was updated successfully, but these errors were encountered:
Bug report
Style files (actually, style dicts) can be distributed as python packages, as discussed e.g. in #14943 (comment). This has the advantage of being relatively easy to do and that it works "as is" for essentially all versions of matplotlib (if your matplotlib is too old to have
matplotlib.style.use
(pre 1.5...) you can still usercParams.update(style_dict)
).In today's call we agreed that this approach should be documented and that a template package (similar to https://github.com/matplotlib/matplotlib-cmap-template) could be created.
It was also pointed out during the call that this approach makes it easy to distribute colormaps together with the style, or add any additional custom logic; this may be worth documenting too.
The text was updated successfully, but these errors were encountered: