About 50 results
Open links in new tab
  1. How to view all colormaps available in matplotlib?

    Dec 16, 2015 · I was wondering if there is a function call that can give me the name of all colormaps available in matplotlib? It used to be possible by something along the lines of (see here): import …

  2. Defining the midpoint of a colormap in matplotlib

    5 With matplotlib version 3.4 or later, the perhaps simplest solution is to use the new CenteredNorm. Example using CenteredNorm and one of the diverging colormaps:

  3. python - Matplotlib discrete colorbar - Stack Overflow

    Some background is that matplotlib provides so-called qualitative colormaps, intended to use with discrete data. Set1, e.g., has 9 easily distinguishable colors, and tab20 could be used for 20 colors.

  4. Using Colormaps to set color of line in matplotlib

    83 How does one set the color of a line in matplotlib with scalar values provided at run time using a colormap (say jet)? I tried a couple of different approaches here and I think I'm stumped. values[] is a …

  5. Getting individual colors from a color map in matplotlib

    Aug 20, 2014 · If you have a Colormap cmap, for example: cmap = matplotlib.cm.get_cmap('Spectral') How can you get a particular colour out of it between 0 and 1, where 0 is the first colour in the map …

  6. Create own colormap using matplotlib and plot color scale

    I have the following problem, I want to create my own colormap (red-mix-violet-mix-blue) that maps to values between -2 and +2 and want to use it to color points in my plot. The plot should then ha...

  7. python - Cyclic colormap without visual distortions for use in phase ...

    As of matplotlib version 3.0 there are built-in cyclic perceptually uniform colormaps. OK, just the one colormap for the time being, but with two choices of start and end along the cycle, namely twilight …

  8. matplotlib - Where is the list of available built-in colormap names ...

    Mar 9, 2021 · Question Where in the matplotlib documentations lists the name of available built-in colormap names to set as the name argument in matplotlib.cm.get_cmap(name)? Choosing …

  9. python - Add alpha to an existing colormap - Stack Overflow

    May 19, 2016 · 45 I'd like to make an overlay of several hexbin plots, but with builtin colormaps only the last one is visible. I don't want to construct a colormap de novo. How one would add linear alpha to …

  10. python - Matplotlib Colormaps – Choosing a different color for each ...

    Nov 28, 2021 · Python uses some standard colors here, i.e., each graph is automatically presented in a different color. What I would like to do is the following: Instead of using the standard colors that are …