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 …

  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. 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. …

  4. 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 …

  5. 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 …

  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 …

  7. 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 …

  8. python - Cyclic colormap without visual distortions for use in …

    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 …

  9. module 'matplotlib' has no attribute 'colormaps' - Stack Overflow

    Jun 5, 2024 · By the way, you should choose between from matplotlib import pyplot as plt and import matplotlib.pyplot as plt. Both ways are equivalent, but you shouldn't use them both in …

  10. 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 …