Re: ListPlot command
- To: mathgroup at smc.vnet.net
- Subject: [mg9743] Re: ListPlot command
- From: Ezra Freedman <ewf3 at columbia.edu>
- Date: Tue, 25 Nov 1997 00:06:44 -0500
- Sender: owner-wri-mathgroup at wolfram.com
Thanks for the advice.
I ended up using PlotStyle for the color and Show to combine the plots.
Next time I will try MultipleListPlot. -Ezra Freedman
On Fri, 21 Nov 1997, JOHN C ERB wrote:
>
> Ezra Freedman wrote:
>
> >Hi.
> >I have three lists of (x,y) pairs which I would like to plot on the
> same
> >graph.
> >I would like each list to be assigned a different color, and can
> not
> >figure out how to do this. Does anyone have any ideas?
>
>
> MultipleListPlot has the capability for plotting several sets of
> points.
> To load this package: Needs["Graphics`MultipleListPlot`"];
>
>
> Or you might wish to use the graphics primitives directly,
> as in the following example:
>
> set1=Table[{i,i+1},{i,1,10}];
> set2=Table[{i+1,i},{i,1,10}];
> set3=Table[{i+1,i+1},{i,1,10}];
> one=Graphics[{RGBColor[1,0,0],Map[Point[#]&,set1]}];
> two=Graphics[{RGBColor[0,1,0],Map[Point[#]&,set2]}];
> three=Graphics[{RGBColor[0,0,1],Map[Point[#]&,set3]}];
> Show[{one,two,three},Axes->True]
>
> John C. Erb
>
>
>