Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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}]


  • Prev by Date: Re: Integrate[s^s(1-s)^(1-s)Sin[Pi s],{s,0,1}]
  • Next by Date: Re: Solve & RotationMatrix
  • Previous by thread: Re: weird behavior when plotting multiple functions in
  • Next by thread: Re: weird behavior when plotting multiple functions in 6.0