Pass custom built MPL colormaps
See original GitHub issueFeature request: allow passing custom made Matplotlib colormaps
import matplotlib.pyplot as plt
cmap = plt.cm.get_cmap("viridis", 5)
then pass that colormap to the Viewer
(the goal isn’t necessarily catecorical colormaps… this is just a simple example. A user might want to make a custom normalized map that are far more complex)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Creating Colormaps in Matplotlib
The list of colors that comprise the colormap can be directly accessed using the colors property, or it can be accessed indirectly by...
Read more >Create own colormap using matplotlib and plot color scale
Show activity on this post. I have the following problem, I want to create my own colormap (red-mix-violet-mix-blue) that maps to values between...
Read more >matplotlib colormaps - GitHub Pages
mpl colormaps. Update: These colormaps have been ... Third parties have also made viridis available in R and Matlab and JavaScript / D3....
Read more >Customize colormaps — mplsoccer 1.1.9 documentation
This example shows how to use cmasher colormaps and also how to make a custom colormap (cmap) in Matplotlib. Colormaps are used to...
Read more >Colormap Normalization — Matplotlib 2.0.0b4 ... - Mines Paris
Artists that map data to color pass the arguments vmin and vmax to construct a ... In [1]: import matplotlib as mpl In...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
👍 we are working towards this.
Hi, thanks for the fast reply. But I would like to use the colormap to color the scalar values. It should look like this in the plot on the right: