Re: weird behavior when plotting multiple functions in 6.0
- To: mathgroup at smc.vnet.net
- Subject: [mg76134] Re: weird behavior when plotting multiple functions in 6.0
- From: Szabolcs <szhorvat at gmail.com>
- Date: Wed, 16 May 2007 05:48:53 -0400 (EDT)
- Organization: University of Bergen
- References: <f2btov$iga$1@smc.vnet.net>
Roman wrote:
> But when I do
> f[x_] = {Sin[x], Cos[x]};
> Plot[f[x], {x, 0, 4*Pi}]
> both curves are blue. It is as if at some level Mathematica does not
> understand that I'm actually plotting two curves at a time, and uses
> the first color specification (blue) for both curves.
...
> Has anyone figured out a workaround for this one?
A workaround is
Plot[f[x] // Evaluate, {x, 0, 4Pi}]