Mathematica: Colour Plot

  • Mathematica
  • Thread starter Sarah rob
  • Start date
  • #1
16
0
If I have a list;
list={ {{1, 2}, {1, 3}, {1, 5}},
{{2, 2}, {2, 4}, {2, 1}},
{{3, 3}, {3, 5}, {3, 2}} }
and want to plot it using ListPlot

  • Is it possibe to colour all the 1st pairs of the list e.g. {1,2}, {2,2}, {3,3} blue, {1,3},
    {2,4},{3,5} green and {1,5}, {2,1}, {3,2} red using PlotMarker or a simular function
 

Answers and Replies

  • #2
phyzguy
Science Advisor
4,845
1,793
This does what you want:

ListPlot[Table[list[[k]], {k, {1, 2, 3}}],
PlotStyle -> {{Blue, PointSize[Large]}, Green, Red},
PlotRange -> {{0, 6}, {0, 6}}]
 

Related Threads on Mathematica: Colour Plot

  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
1K
Replies
1
Views
3K
  • Last Post
Replies
2
Views
2K
Replies
1
Views
797
  • Last Post
Replies
1
Views
878
  • Last Post
Replies
2
Views
8K
  • Last Post
Replies
3
Views
14K
  • Last Post
Replies
2
Views
23K
Top