Python Forum
How do I map a list of values to specified colors?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I map a list of values to specified colors?
#1
Here is what I want to do:
a list of 19 values:
[-1, 1, -2, 2, -3, 3, -4, 4, -5, 5, -6, 6, -7, 7, -8, 8, -9, 9, 0]
I would like the color grey gradual from white to black in the order in the list. How can I do that?
or else, if I can specify each different color to each different values, that is also ok.

Thanks.
Reply


Messages In This Thread
How do I map a list of values to specified colors? - by larkypython - Nov-04-2019, 02:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Assigning cycle values in a list nmancini 3 937 Sep-16-2024, 09:35 PM
Last Post: deanhystad
  remove duplicates from dicts with list values wardancer84 27 5,524 May-27-2024, 04:54 PM
Last Post: wardancer84
  Count image's colors very fast flash77 18 7,415 Mar-05-2024, 06:12 PM
Last Post: deanhystad
  Copying the order of another list with identical values gohanhango 7 2,510 Nov-29-2023, 09:17 PM
Last Post: Pedroski55
  Search Excel File with a list of values huzzug 4 2,744 Nov-03-2023, 05:35 PM
Last Post: huzzug
  Comparing List values to get indexes Edward_ 7 3,260 Jun-09-2023, 04:57 PM
Last Post: deanhystad
  can openpyxl read font colors mperemsky 3 3,156 May-09-2023, 11:18 AM
Last Post: MindKeeper
  Adding values with reduce() function from the list of tuples kinimod 10 5,337 Jan-24-2023, 08:22 AM
Last Post: perfringo
  user input values into list of lists tauros73 3 1,939 Dec-29-2022, 05:54 PM
Last Post: deanhystad
  ANSI not working for change of text colors BliepMonster 10 7,206 Nov-10-2022, 09:28 AM
Last Post: BliepMonster

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020