MathGroup Archive 1997

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

Search the Archive

Re: ListPlot command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9749] Re: [mg9710] ListPlot command
  • From: seanross at worldnet.att.net
  • Date: Tue, 25 Nov 1997 00:06:52 -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?

The following code will do what you want.

list1={{x1,y1},....};
list2={{x2,y2},....};
list3={{x3,y3},....};

ListPlot[{list1,list2,list3},PlotStyle->{Hue[.1],Hue[.3],Hue[.6]}] -- 
Remove the _nospam_ in the return address to respond.


  • Prev by Date: Re: ListPlot command
  • Next by Date: Re: ListPlot command
  • Previous by thread: Re: ListPlot command
  • Next by thread: Re: ListPlot command