About 282,000 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. Color selection for matplotlib that prints well - Stack Overflow

    Dec 20, 2012 · 10 I am using pandas and matplotlib to generate bar-graphs with lots of bars. I know how to cycle through a list of selected colors (How to give a pandas/matplotlib bar graph …

  3. Prettier default plot colors in matplotlib - Stack Overflow

    Apr 4, 2013 · I've also noticed that if you plot more than 5-6 different series in a single plot, matplotlib starts repeating colors. I've seen some gorgeous graphs coming out of other …

  4. Changing colour scheme of python matplotlib python plots

    Nov 17, 2013 · 6 This question already has answers here: How to set the default color cycle for all subplots with matplotlib? (3 answers)

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

  6. Matplotlib- Colour scheme - Stack Overflow

    Jan 29, 2021 · You could use plt.imshow() and a ListedColormap. The example below uses yellow instead of gray to see the different colors a bit better ('lightgray' probably looks better than …

  7. python - Matplotlib discrete colorbar - Stack Overflow

    I am trying to make a discrete colorbar for a scatterplot in matplotlib I have my x, y data and for each point an integer tag value which I want to be represented with a unique colour, e.g. plt.s...

  8. How do I change contour color plot to make it more readable?

    Aug 24, 2023 · -1 I want to make a contour plot, with a specific contour line using matplotlib, the important piece of code is the following:

  9. Changing colours of pixels of plt.imshow() image - Stack Overflow

    Nov 1, 2014 · I need to draw an image with matplotlib's imshow() and then mark some pixels with different colour. Just changing their value in the initial array won't work as I need to use …

  10. Defining a discrete colormap for imshow - Stack Overflow

    I have a simple image that I'm showing with imshow in matplotlib. I'd like to apply a custom colormap so that values between 0-5 are white, 5-10 are red (very simple colors), etc.