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

  • Thread starter Thread starter brydustin
  • Start date Start date
  • Tags Tags
    Function Plotting
AI Thread Summary
The discussion focuses on plotting multiple sets of lists using color-coded visualization based on specific hue values. The proposed method involves generating hues for each list using the formula Hue[1/j] for j ranging from 1 to N, where N is the number of lists. There is clarification needed regarding the definition of Hue[1], as it is noted that Hue[1] is not defined in this context. The example provided demonstrates how to create a plot with color styles applied to the data using ListPlot. The conversation emphasizes the importance of correctly applying hue values for effective visual representation.
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: 423
  • Disks.png
    Disks.png
    1.1 KB · Views: 474

Similar threads

Replies
3
Views
11K
Replies
1
Views
2K
Replies
7
Views
3K
Replies
1
Views
2K
Replies
2
Views
2K
Back
Top