Mathematica 9 is now available
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: Plot question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80866] Re: Plot question
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 4 Sep 2007 06:34:09 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <fbj2c3$nc9$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

because:

Plot[Evaluate[{a x, 2 a x, 3 a x} /. a -> 2], {x, 1, 2},
   PlotStyle -> {Red, Green, Blue}]

make the three color plot. Plot does not evaluat it argument,
so it can't see that the result of ReplacAll[] is a List[]

Regards
   Jens
Yaroslav Bulatov wrote:
> Why does the plot below make all 3 curves the same color?
> 
> Plot[{a x, 2 a x, 3 a x} /. a -> 2, {x, 1, 2},
>  PlotStyle -> {Red, Green, Blue}]
> 
> 


  • Prev by Date: Re: date format
  • Next by Date: Re: using units and plotting
  • Previous by thread: Plot question
  • Next by thread: Re: Plot question