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: [mg80900] Re: [mg80840] Plot question
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Wed, 5 Sep 2007 02:50:25 -0400 (EDT)
  • References: <15373515.1188894323011.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

You get 3 colors this way:

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

Mathematica didn't know, BEFORE applying the rule, what form the result  
would take.

Bobby

On Tue, 04 Sep 2007 02:39:10 -0500, Yaroslav Bulatov  
<yaroslavvb at gmail.com> 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}]
>
>
>



-- 
DrMajorBob at bigfoot.com


  • Prev by Date: Grid
  • Next by Date: How to obtain numberical value from an InverseFunction?
  • Previous by thread: Re: Plot question
  • Next by thread: Re: Plot question