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
{{ message }}
Repository navigation
Document how to distribute style files in python packages #17978
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.
Activity