Efficient Hue Plotting for Multiple Sets of Lists | Color-Coded Visualization

  • Thread starter Thread starter brydustin
  • Start date Start date
  • Tags Tags
    Function Plotting
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
brydustin
Messages
201
Reaction score
0
I want to take a set of lists {list1, list2, list3, ..., list N} and plot them with color according to the following rule:Color set = { Hue[1-0.] , Hue[1/2], Hue[1/3], ... Hue[1/N] }
For any arbitrary number of sets... where Hue[1-0.] is used because Hue[1] is not defined.
 
Physics news on Phys.org
Something like the following?

Code:
n=10; k=100;
data=Range[1, n] + RandomReal[{0, 1}, {n, k}];
hues=Table[Hue[1/j], {j, n}];

ListPlot[data, Joined->True, PlotStyle->hues]
attachment.php?attachmentid=34225&stc=1&d=1302491343.png



I'm not sure what you mean by Hue[1] not being defined
Code:
GraphicsRow[{Graphics[{Hue[1], Disk[]}], Graphics[{Hue[1.], Disk[]}]}]
attachment.php?attachmentid=34226&stc=1&d=1302491343.png
 

Attachments

  • Hues.png
    Hues.png
    12.9 KB · Views: 457
  • Disks.png
    Disks.png
    1.1 KB · Views: 506