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 smc.vnet.net
  • Subject: [mg87368] Re: Just primitive ColorFunction
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Wed, 9 Apr 2008 05:51:54 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <ftfej7$bu7$1@smc.vnet.net>

Š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.

<snip>

Jakub,

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

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

Regards,
-- 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