MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

ListPlot command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9739] ListPlot command
  • From: TTCJ34A at prodigy.com ( JOHN C ERB)
  • Date: Tue, 25 Nov 1997 00:06:40 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

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



  • Prev by Date: Boolean, Binary logic
  • Next by Date: Want to use Module
  • Previous by thread: ListPlot command
  • Next by thread: Re: ListPlot command