Skip to main content
added 14 characters in body
Source Link
BlacKow
  • 6.4k
  • 19
  • 33

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.

Edit

Since you mentioned that you want to track the line number by color, some sort of gradient would be useful. I will use point generation from @MarcoB

SeedRandom[314];
list = RandomComplex[20 {-1 - I, 1 + I}, {10, 3}];
colors = ColorData["TemperatureMap"][#] & /@ 
   Range[0, 1, 1/Length[list]];
ListLinePlot[#, PlotStyle -> colors, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.

Since you mentioned that you want to track the line number by color, some sort of gradient would be useful. I will use point generation from @MarcoB

SeedRandom[314];
list = RandomComplex[20 {-1 - I, 1 + I}, {10, 3}];
colors = ColorData["TemperatureMap"][#] & /@ 
   Range[0, 1, 1/Length[list]];
ListLinePlot[#, PlotStyle -> colors, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.

Edit

Since you mentioned that you want to track the line number by color, some sort of gradient would be useful. I will use point generation from @MarcoB

SeedRandom[314];
list = RandomComplex[20 {-1 - I, 1 + I}, {10, 3}];
colors = ColorData["TemperatureMap"][#] & /@ 
   Range[0, 1, 1/Length[list]];
ListLinePlot[#, PlotStyle -> colors, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

added 468 characters in body
Source Link
BlacKow
  • 6.4k
  • 19
  • 33

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.

Since you mentioned that you want to track the line number by color, some sort of gradient would be useful. I will use point generation from @MarcoB

SeedRandom[314];
list = RandomComplex[20 {-1 - I, 1 + I}, {10, 3}];
colors = ColorData["TemperatureMap"][#] & /@ 
   Range[0, 1, 1/Length[list]];
ListLinePlot[#, PlotStyle -> colors, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.

Since you mentioned that you want to track the line number by color, some sort of gradient would be useful. I will use point generation from @MarcoB

SeedRandom[314];
list = RandomComplex[20 {-1 - I, 1 + I}, {10, 3}];
colors = ColorData["TemperatureMap"][#] & /@ 
   Range[0, 1, 1/Length[list]];
ListLinePlot[#, PlotStyle -> colors, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

Source Link
BlacKow
  • 6.4k
  • 19
  • 33

Following your pattern of all points sitting on a straight line.

list = Partition[#, 3] &@(# + I # & /@ Range[12]);
ListLinePlot[#, PlotStyle -> {Blue, Green}, Joined -> False] &@
 Map[{Re[#], Im[#]} &, list, {2}]

enter image description here

You can see that the point colors change "regularly" along color list. ReIm[] doesn't work for my version of Mathematica.