Skip to content
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

[ENH]: Ability to add custom colours and colourmaps to matplotlibrc #28276

Open
tom-new opened this issue May 22, 2024 · 1 comment
Open

[ENH]: Ability to add custom colours and colourmaps to matplotlibrc #28276

tom-new opened this issue May 22, 2024 · 1 comment

Comments

@tom-new
Copy link

tom-new commented May 22, 2024

Problem

I have a custom colour map that I define with LinearSegmentedColormap that I use a lot in my work. It has 17 different colours and therefore clutters up the top of all my plotting scripts (and it's annoying having to copy it every time I want to use it).

Proposed solution

It would be convenient if custom colours and colourmaps could be somehow defined in the matplotibrc file, so we can access them without having to define them every time. If there is already some way to do this globally, that would be great, but I couldn't find such a way (aside from editing the matplotlib source files, which doesn't seem like a good solution).

@story645
Copy link
Member

Are you packaging your custom colormaps, like for example https://github.com/matplotlib/cmocean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants