Skip to content

Document how to distribute style files in python packages #17978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anntzer opened this issue Jul 20, 2020 · 0 comments · Fixed by #24257
Closed

Document how to distribute style files in python packages #17978

anntzer opened this issue Jul 20, 2020 · 0 comments · Fixed by #24257

Comments

@anntzer
Copy link
Contributor

anntzer commented Jul 20, 2020

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 use rcParams.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.

@tacaswell tacaswell added this to the v3.4.0 milestone Jul 21, 2020
@QuLogic QuLogic modified the milestones: v3.4.0, v3.5.0 Jan 27, 2021
@QuLogic QuLogic modified the milestones: v3.5.0, v3.6.0 Sep 25, 2021
@QuLogic QuLogic modified the milestones: v3.6.0, v3.6.1 Sep 14, 2022
@QuLogic QuLogic modified the milestones: v3.6.1, v3.6.2 Oct 6, 2022
@QuLogic QuLogic modified the milestones: v3.6.2, v3.7.0 Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants