About 582,000 results
Open links in new tab
  1. 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?

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

  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. Matplotlib Plot Lines with Colors Through Colormap

    Both with colormap "jet" and another that I imported from seaborn, I get the same 7 colors repeated in the same order. I would like to be able to plot up to ~60 different lines, all with …

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

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

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

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

  9. Setting different color for each series in scatter plot

    I used another method to assign the colors for each series in a scatter plot. Now it works, unfortunately I couldn't proceed with your elegant solution when it came to errorbars, still I'm …

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