Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2008

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

Search the Archive

Re: Just primitive ColorFunction

  • To: mathgroup at
  • Subject: [mg87368] Re: Just primitive ColorFunction
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Wed, 9 Apr 2008 05:51:54 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <ftfej7$bu7$>

Šerých Jakub wrote:

> I think, that it must be something very simple, but I cannot find the
> solution....
> I need to fill the Plot so, that area above the axis will be red and area
> below the axis will be blue.



The option you need is *FillingStyle*. For instance,

     Plot[Sin[x], {x, 0, 4 Pi}, PlotStyle -> Thick, Filling -> Axis,
         FillingStyle -> {Blue, Red}]

-- Jean-Marc

  • Prev by Date: Frametick Orientation (2 Questions)
  • Next by Date: Path, Get, etc.
  • Previous by thread: Re: Just primitive ColorFunction
  • Next by thread: Re: Just primitive ColorFunction