About 548,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. 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?

  3. How to pick a new color for each plotted line within a figure

    4 As Ciro's answer notes, you can use prop_cycle to set a list of colors for matplotlib to cycle through. But how many colors? What if you want to use the same color cycle for lots of plots, …

  4. plot different color for different categorical levels - Stack Overflow

    I have this data frame diamonds which is composed of variables like (carat, price, color), and I want to draw a scatter plot of price to carat for each color, which means different color has differ...

  5. Highlight rows with different colors by groups of duplicates

    Jul 8, 2020 · How do I highlight rows with different colors by groups of duplicates? I don't care about which colors are used per se, I just want the duplicate rows one color, and the next set …

  6. Automatically plot different colored lines - Stack Overflow

    Jan 9, 2010 · Another option for plotting lines in different colors is to use the LineStyleOrder property; see Defining the Color of Lines for Plotting in the MATLAB documentation for more …

  7. Plotting multiple lines, in different colors, with pandas dataframe

    3 You can also try the following code to plot multiple lines in different colors with pandas data frame.

  8. How to change the color of a single bar in a bar plot

    Sep 24, 2013 · Supposely, I have the bar chart as below: Any ideas on how to set different colors for each carrier? As for example, AK would be Red, GA would be Green, etc? I am using …

  9. python - Pandas DataFrame Bar Plot - Plot Bars Different Colors …

    Jun 12, 2017 · Pandas DataFrame Bar Plot - Plot Bars Different Colors From Specific Colormap Asked 8 years, 6 months ago Modified 5 years, 4 months ago Viewed 57k times

  10. Have each histogram bin with a different color - Stack Overflow

    Sep 7, 2021 · The colors keyword is only for the case where you want to plot multiple datasets (=histograms) at once. It can't be used to color the bars individually. You can however capture …