Re: Filling Plots to the X-Axis for a Range of X Values
- To: mathgroup at smc.vnet.net
- Subject: [mg117771] Re: Filling Plots to the X-Axis for a Range of X Values
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 31 Mar 2011 04:00:29 -0500 (EST)
Show[Plot[x^2, {x, -5 , 10}], RegionPlot[0 < y < x^2, {x, 2, 7}, {y, 0, 100}]] Plot[{x^2, Piecewise[{{x^2, 2 < x < 7}}]}, {x, -5 , 10}, Filling -> {2 -> Axis}] Bob Hanlon ---- Gregory Lypny <gregory.lypny at videotron.ca> wrote: ============= Hello everyone, I'd like to fill a plot down to the x-axis but restrict the fill to lie between two x values, and am not sure how to do it. For example, if I plot a parabola f[x] = x^2, with x in the range =E2=88=9210 to 10, I'd like to be able to fill to the x-axis between x = 2 and x = 7, essentially creating a filled column. Is there any way to do that? Regards, Gregory