question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass custom built MPL colormaps

See original GitHub issue

Feature 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:open
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thewtexcommented, Jan 10, 2020

👍 we are working towards this.

0reactions
quaeritiscommented, Jan 10, 2020

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: test_plot

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found