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: [mg80890] Re: Plot question
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Wed, 5 Sep 2007 02:45:18 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fbj2c3$nc9$1@smc.vnet.net>

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

Try,

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

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

[... two colorful graphics deleted ...]

-- 
Jean-Marc


  • Prev by Date: Re: Limits of Nested Expressions
  • Next by Date: random points!
  • Previous by thread: Re: Plot question
  • Next by thread: Re: Plot question