Skip to content

Document how to distribute style files in python packages #17978

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy