Re: Filled Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg25920] Re: [mg25884] Filled Plot
- From: BobHanlon at aol.com
- Date: Tue, 7 Nov 2000 23:05:04 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 11/7/2000 4:25:43 AM, pjmferreira at hotmail.com writes: >Can I plot de Normal density function Plot[dist,{x,-3,3}] and then fill > >only a region under that curve, for example {x,0,3}? > Needs["Statistics`NormalDistribution`"]; Needs["Graphics`FilledPlot`"]; FilledPlot[ PDF[NormalDistribution[0, 1], x]*{1, (1 - UnitStep[x])}, {x, -3, 3}]; FilledPlot[ PDF[NormalDistribution[0, 1], x]*{1, (1 - UnitStep[x] + UnitStep[x - 1])}, {x, -3, 3}]; Bob Hanlon