About 11,000,000 results
Open links in new tab
  1. python - How do I print colored text to the terminal? - Stack Overflow

    Apr 25, 2019 · As the author of Colorama, thanks for the mention @nbv4. I'll try and clarify a bit: Colorama aims to let Python programs print colored terminal text on all platforms, using the same …

  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. Generating color ranges in Python - Stack Overflow

    I want to generate a list of color specifications in the form of (r, g, b) tuples, that span the entire color spectrum with as many entries as I want. So for 5 entries I would want something like: ...

  4. How can I color Python logging output? - Stack Overflow

    Dec 21, 2008 · Now, Python has the logging module, which lets you specify a lot of options to customize output. So, I'm imagining something similar would be possible with Python, but I can’t find out how to …

  5. Defining a color in python - Stack Overflow

    Aug 17, 2011 · A color in what context? The way you define a color likely depends on what you intend to use it with.

  6. python - Fill cells with colors using openpyxl? - Stack Overflow

    May 27, 2015 · I am currently using openpyxl v2.2.2 for Python 2.7 and i wanted to set colors to cells. I have used the following imports import openpyxl, from openpyxl import Workbook from …

  7. python - Color a scatter plot by Column Values - Stack Overflow

    pandas.DataFrame.plot and matplotlib.pyplot.scatter can take a c or color parameter, which must be a color, a sequence of colors, or a sequence of numbers. Tested in python 3.8, pandas 1.3.1, and …

  8. python - How to change the color of the axis, ticks and labels - Stack ...

    Jan 21, 2011 · I'd like to change the color of the axis, as well as ticks and value-labels for a plot I did using matplotlib and PyQt.

  9. python - Setting different color for each series in scatter plot ...

    import matplotlib.pyplot matplotlib.pyplot.scatter([1,2,3],[4,5,6],color=['red','green','blue']) When you have a list of lists and you want them colored per list. I think the most elegant way is that suggesyted by …

  10. python - plot different color for different categorical levels - Stack ...

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