plot every point with a different color in Mathematica

data is a list of the form


Lsize there is another list of the form

{z1,z2,z3..} based on which you wish to have the color

Both the list are of the same size

Colorlist = Map[Hue, Lsize/300.0];
ListPlot[Table[Style[data[[i]], Colorlist[[i]]], {i, 1, Length[Lsize]}]]

Entries inside Hue should be <1

Leave a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: