Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8350
| From | Themis Matsoukas <tmatsoukas@me.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Filling area between curves |
| Date | 2012-02-05 11:02 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jglnl0$2bo$1@smc.vnet.net> (permalink) |
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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Filling area between curves Themis Matsoukas <tmatsoukas@me.com> - 2012-02-05 11:02 +0000
csiph-web