Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Graphics question

  • To: mathgroup at
  • Subject: [mg51727] Re: [mg51705] Graphics question
  • From: "David Park" <djmp at>
  • Date: Sat, 30 Oct 2004 03:48:34 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


Here is an example regular Mathematica.

f1[x_] := 1.5Exp[-x]
f2[x_] := Exp[-x]
f3[x_] := Exp[-2x]


Block[{$DisplayFunction = Identity},
  p1 = Plot[f1[x], {x, 0, 2}];
  p2 = FilledPlot[{f2[x], f3[x]}, {x, 0, 2}, Fills -> Gray];]

DisplayTogether[p1, p2,
    Frame -> True,
    ImageSize -> 450];

With the DrawGraphics package from my web site below it would be:


    {Draw[f1[x], {x, 0, 2}],
     FilledDraw[{f2[x], f3[x]}, {x, 0, 2}, Fills -> Gray]},
    Frame -> True,
    ImageSize -> 450];

David Park
djmp at 

From: Alan [mailto:info at]
To: mathgroup at

I have  3 Plots over the same x-axis range: p1, p2, p3
Each plot is of a well-behaved monotonically decreasing function.

The result of Show[p1,p2,p3] is three curves which do not intersect,
with the exception except that the lower two curves intersect at x=0.

I would like to fill in the region between the
two lower curves with a Gray background.

How can I accomplish this?


  • Prev by Date: Re: gridlines styles.
  • Next by Date: Re: Converting Mathematica to MS Word
  • Previous by thread: Re: Graphics question
  • Next by thread: Re: Graphics question