Re: ListPlot command
- To: mathgroup at smc.vnet.net
- Subject: [mg9761] Re: [mg9710] ListPlot command
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Tue, 25 Nov 1997 00:07:10 -0500
- Sender: owner-wri-mathgroup at wolfram.com
[mg9710] ListPlot command Ezra Freedman, ewf3 at columbia.edu >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? Ezra: Two ways: Take lists = Table[{x+.5 Random[],Random[]},{3},{x,5}] 1) Show[Graphics[Thread[{{Hue[0],Hue[.35],Hue[.7]},Line/@lists}]]] 2) <<Graphics`MultipleListPlot` MultipleListPlot[Sequence@@lists, PlotJoined -> True, PlotStyle ->{{Hue[0]},{ Thickness[.03],Hue[.35]},{Hue[.7]}}] The list of lists in PlotStyle ->{{Hue[0]},{Thickness[.03],Hue[.35]},{Hue[.7]}} is necessary for grouping several directives for the same line. Allan Hayes hay at haystack.demon.co.uk http://www.haystack.demon.co.uk voice: +44 (0)116 271 4198 fax: +44 (0)116 271 8642