About 50 results
Open links in new tab
  1. python - Named colors in matplotlib - Stack Overflow

    What named colors are available in matplotlib for use in plots? I can find a list on the matplotlib documentation that claims that these are the only names: b: blue g: green r: red c: cyan m: mag...

  2. Getting the names of colors from matplotlib colormap object

    Apr 5, 2022 · I want to get english names of colors from a colormaps object. So far I read that you can get numeric values of colors. For example - import numpy as np import matplotlib.pyplot as plt from …

  3. python - Create new named color in Matplotlib - Stack Overflow

    Aug 11, 2023 · 1 I have a few colors I use over and over again in my work. I would like to "register" these as named colors in Matplotlib (by executing code in my work, not by changing the source of …

  4. Registering named colors in matplotlib - Stack Overflow

    Aug 20, 2022 · In matplotlib, it is possible to register colormaps, so that they can be easily used in the cmap argument of many plotting functions. Is there a way to also register named colors? For …

  5. What are the hex codes of matplotlib tab10 palette?

    Oct 15, 2020 · Do you know what are the hex codes or RGB values of the "tab" palette (the default 10 colors: tab:blue, tab:orange, etc...) of matplotlib ? And possibly do you know how if there's a way to …

  6. matplotlib - Python from color name to RGB - Stack Overflow

    how to get the color name from rgb value in python? Use the CSS4_COLORS list from matplotlib.

  7. 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)?

  8. ModuleNotFoundError: No module named 'matplotlib.colors',

    May 21, 2022 · ModuleNotFoundError: No module named 'matplotlib.colors', Asked 3 years, 8 months ago Modified 3 years, 8 months ago Viewed 1k times

  9. How to generate random colors in matplotlib? - Stack Overflow

    Feb 6, 2013 · What's the trivial example of how to generate random colors for passing to plotting functions? I'm calling scatter inside a loop and want each plot a different color. for X,Y in data: scatter(...

  10. matplotlib - Python plot with unique colors for more than 10 lines ...

    Jun 1, 2020 · I adapted this directly from the List of named colors example in the Matplotlib Gallery. The idea is to iterate over color names along with each line that is being plotted and use the color name …