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

MathGroup Archive 2012

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

Search the Archive

Re: Filling area between curves

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124773] Re: Filling area between curves
  • From: Themis Matsoukas <tmatsoukas at me.com>
  • Date: Sun, 5 Feb 2012 06:02:19 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

The option you need is Filling. Check the documentation for similar examples:

F[x_] := -1 + 4 x - x^2
G[x_] := Piecewise[{{2 - x, x < 2}, {-2 + x, x >= 2}}, 0];
Plot[{G[x], F[x]}, {x, 0, 5}, 
 Filling -> {1 -> {{2}, {LightGray, White}}}, PlotRange -> {0, 3}]

Themis



  • Prev by Date: Re: Funny Behavior of Module
  • Next by Date: Mathematica 8 - kernel hangs
  • Previous by thread: Re: Filling area between curves
  • Next by thread: creation of date list