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