8000 Document how to distribute style files in python packages · Issue #17978 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Document how to distribute style files in python packages #17978
Closed
@anntzer

Description

@anntzer

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0