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. 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. python - How to define colors in a figure using Plotly Graph Objects ...

    Aug 18, 2020 · How to define colors in a figure using Plotly Graph Objects and Plotly Express Asked 5 years, 6 months ago Modified 1 year, 6 months ago Viewed 96k times

  4. python - How to plot one line in different colors - Stack Overflow

    How to plot one line in different colors Asked 12 years, 8 months ago Modified 1 year, 11 months ago Viewed 68k times

  5. python - How to set specific color to some bars in a plotly bar graph ...

    Sep 11, 2021 · This happens because color in px.bar is used to name a category to illustrate traits or dimensions of a dataset using a colorscale. Or in you your case, rather a color cycle since you're …

  6. How to put colors in a matplotlib bar chart? - Stack Overflow

    Sep 26, 2019 · I am trying to color custom each bar of the chart below. I need to put specific colors that I can manually set each of the bars. I already tried to use: #Attempt 1 colors = ['cyan', 'lightblue', '

  7. How to set colors for nodes in NetworkX? - Stack Overflow

    Jan 8, 2020 · How to set colors for nodes in NetworkX? Asked 11 years, 3 months ago Modified 3 years, 3 months ago Viewed 174k times

  8. python - How to give a pandas/matplotlib bar graph custom colors ...

    How to give a pandas/matplotlib bar graph custom colors Asked 13 years, 6 months ago Modified 6 years ago Viewed 245k times

  9. python - creating over 20 unique legend colors using matplotlib

    But using this way, the graph repeats a lot of colors in the legend. Is there any way to ensure a unique color is assigned to each line using matplotlib and over 20 lines?

  10. python - Plotting multiple lines, in different colors, with pandas ...

    3 You can also try the following code to plot multiple lines in different colors with pandas data frame. import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np from pandas import …