MathGroup Archive 2000

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

Search the Archive

Re: Filled Plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26133] Re: Filled Plot
  • From: "Paul Lutus" <nospam at nosite.com>
  • Date: Tue, 28 Nov 2000 01:56:29 -0500 (EST)
  • References: <8u8d1c$7c5@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Pedro Ferreira" <pjmferreira at hotmail.com> wrote in message
news:8u8d1c$7c5 at smc.vnet.net...
>
> Hi,
>
> 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}?


In[1]:=
<< Statistics`ContinuousDistributions`
<< Statistics`DescriptiveStatistics`
<< Graphics`FilledPlot`

In[18]:=
dist = NormalDistribution[100,15];

In[16]:=
p := FilledPlot[PDF[dist,x],{x,50,150},DisplayFunction -> Identity,
    Fills->RGBColor[.5,.5,1]];
fp := FilledPlot[PDF[dist,x],{x,120,132},DisplayFunction -> Identity,
    Fills->RGBColor[1,.5,.5]];

In[17]:=
Show[{p,fp},DisplayFunction ->$DisplayFunction]

--

Paul Lutus
www.arachnoid.com


"Pedro Ferreira" <pjmferreira at hotmail.com> wrote in message
news:8u8d1c$7c5 at smc.vnet.net...
>
> Hi,
>
> 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}?
>
> Thank you.
>
> My e-mail is pjmferreira at hotmail.com
>



  • Prev by Date: Equivalent functions generate different plots
  • Next by Date: NoWhiteLine
  • Previous by thread: RE: Filled Plot
  • Next by thread: Data Plotting Questions