MathGroup Archive 2000

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

Search the Archive

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


  • Prev by Date: Re: Filled Plot
  • Next by Date: Re: How can I combinate two strings into one?
  • Previous by thread: Re: Filled Plot
  • Next by thread: RE: Filled Plot