MathGroup Archive 1997

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

Search the Archive

ListPlot Command (Addendum)

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

Addendum to ListPlot command (Plotting in Colors):

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?


In my previous reply to Ezra, I should have added an example of plotting
in color using MultipleListPlot, so here it is.

NOTE: The Package "Graphics`Colors`" allows one to refer to a color by
its name rather than using RGBColor or Hue. (To see all the colors
available use the command AllColors.)


Needs["Graphics`Colors`"];
Needs["Graphics`MultipleListPlot`"]

set1=Table[{i,i},{i,10}];
set2=Table[{i+1,i},{i,10}];
set3=Table[{i,i+1},{i,10}];

MultipleListPlot[set1,set2,set3,SymbolStyle->{Red,Green,
DeepCobaltViolet},
  SymbolShape->{PlotSymbol[Box]},PlotJoined->True,
  PlotStyle->{Red,Green,DeepCobaltViolet}]



  • Prev by Date: Re: ListPlot command
  • Next by Date: numerical eigenfuncs/values
  • Previous by thread: Re: Re: Want to use Module
  • Next by thread: numerical eigenfuncs/values