MathGroup Archive 2003

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

Search the Archive

Re: FilledPlot Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39075] Re: [mg39044] FilledPlot Question
  • From: Nigel King <king at dircon.co.uk>
  • Date: Sun, 26 Jan 2003 18:44:20 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Needs["Graphics`FilledPlot`"]

p1 = Plot[x^2, {x, 0, 5}];

p2 = FilledPlot[x^2, {x, 2, 4}];

Show[p1, p2];

May be a starting point, then look at the options to these functions
DisplayFunction->Identity for the first two plots and
DisplayFunction->$DisplayFunction for the Show. The combining of Plots in
this way opens up a wonderful array of choices.
-- 
Nigel

> i'm relatively new using mathematica 4.2.  the other day, i came across what
> seemed to be a simple problem, but i couldn't figure out how to do it.
> 
> say i was plotting y=x^2, and i wanted to shade the region under the graph
> only between x=2 to x=4 over a range of {x, 0, 5}, is there a way to do
> this?  i tried FilledPlot, but it filled the entire area under the graph.
> 
> thank you!



  • Prev by Date: Re: nth roots of complex numbers
  • Next by Date: Re: Functional programming
  • Previous by thread: Re: FilledPlot Question
  • Next by thread: Matrices Over Z/NZ