Pypalette / arbitrary cmaps #1034
TyberiusPrime
started this conversation in
General
Replies: 2 comments
-
|
Mizani needs some big work on colors and there is a lot to improve.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
One giant task at a time! So psyched about the new composing of plots! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently ran across https://y-sunflower.github.io/pypalettes/
and they have some nice color maps, for which they
provide list of colors (
load_palette()) and cmaps (load_cmap).One can use the palettes using:
scale_fill_manual(pypalettes.load_pallete("Lime")for the discrete caseand
scale_color_gradientn(pypalettes.load_pallete("Lime")for the continious one.
What one can't use is 'the obvious choice for cmaps:
scale_*_cmap(orscale_*_cmap_d), since these only work with the named color palettes in matplotlib.cm.Now I'm not certain it's worth the effort to support arbitrary cmaps (or even feasible, plotnine might need the name, haven't dug into mizanis handling here),
but I want to leave the workaround in this discussion, for the next searcher.
(Sidenote: The plotnine docs suggests to query 'matplotlib.cm.cmap_d.keys()' but at least on my matplotlib cmap_d doesn't exist).
So long,
TP
Beta Was this translation helpful? Give feedback.
All reactions