MathGroup Archive 2006

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

Search the Archive

Re: Use color with ListPlot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67925] Re: [mg67898] Use color with ListPlot?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 13 Jul 2006 06:53:26 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

You have an extra pair of brackets in both cases (and a typo).

ListPlot[{{1, 2}, {4, 2}, {1, 4}, {4, 2}},
    PlotJoined -> True, PlotStyle -> {RGBColor[1, 0, 0]}];


Bob Hanlon

---- Xiangdong Liu <liu at vtaix.cc.vt.edu> wrote: 
> Hi again,
> 
> This must be a simple question.  How do I make color plots using ListPlot?
> 
> With continuous curve, one can do something like below to get a color plot.
> 
> Plot[{Sin[x], Cos[x]}, {x, 0, 4Pi},
>      PlotStyle->{{RGColorB[0,0,1], RGBColor[0,1,0]}}];
> 
> (well, except that I don't see two colors (B and G) but only one (G)).
> 
> With a list of dots that I want to connect, the following line only produces
> uncolored plot.
> 
> ListPlot[{{1,2}, {4, 2}, {1,4}, {4, 2}}, PlotJoined->True,
>          PlotStyle->{{RGBColor[0,0,1]}}];
> 
> Am I doing anything wrong?
> 
> Thanks!
> 
> 


  • Prev by Date: Re: List Question
  • Next by Date: ListIntegrate
  • Previous by thread: Re: Use color with ListPlot?
  • Next by thread: Re: Use color with ListPlot?