Re: Use color with ListPlot?
- To: mathgroup at smc.vnet.net
- Subject: [mg67956] Re: [mg67898] Use color with ListPlot?
- From: gardyloo <gardyloo at mail.wsu.edu>
- Date: Thu, 13 Jul 2006 06:55:55 -0400 (EDT)
- References: <200607120905.FAA22195@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
:) Spelling ("RGColorB"), and curly-brackets (remove a set in the
ListPlot command, around the RGBColor[0,0,1] bit).
Good luck!
Plot[{Sin[x], Cos[x]}, {x, 0, 4Pi},
PlotStyle->{{RGColorB[0,0,1], RGBColor[0,1,0]}}];
Plot[{Sin[x], Cos[x]}, {x, 0, 4Pi},
PlotStyle -> {{RGBColor[0, 0, 1]}, {RGBColor[0, 1, 0]}}];
Xiangdong Liu 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!
>
>
>
>
--
==========================================================
Curtis Osterhoudt
gardyloo at mail.remove_this.wsu.and_this.edu
PGP Key ID: 0x088E6D7A
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================
- References:
- Use color with ListPlot?
- From: liu@vtaix.cc.vt.edu (Xiangdong Liu)
- Use color with ListPlot?