About 46,200 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. 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 …

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

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

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

    If I have a function which takes color as an input to be edited first (by RGB numbers), and then used in matplotlib.pyplot. How can I convert color name to RGB? For example: def function …

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

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

  7. python - Plotting different colors in matplotlib - Stack Overflow

    Suppose I have a for loop and I want to plot points in different colors: for i in range(5): plt.plot(x,y,col=i) How do I automatically change colors in the for loop?

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

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

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