Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: how to graphically fill the tails of a normal distribution

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50027] Re: how to graphically fill the tails of a normal distribution
  • From: Daniel Herring <dherring at at.uiuc.dot.edu>
  • Date: Thu, 12 Aug 2004 05:43:41 -0400 (EDT)
  • References: <cfcr0h$46q$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Todd,

 > I am interested in producing a plot for a presentation in which the
 > tails of a normal distribution are colored red to illustrate a concept.
 > I can get the plot to work with a single tail, but I can't get the
 > syntax to work for both tails of the disribution.

Instead of trying to pack everything together in one FilledPlot, try
compositing plots using DisplayTogether

Example:
<< Statistics`NormalDistribution`
<< Graphics`FilledPlot`
<< Graphics`Graphics` (* for DisplayTogether *)

ndist = NormalDistribution[0, 1];
npdf = PDF[ndist, x];

DisplayTogether[
   FilledPlot[npdf, {x, -2, -1}, Fills -> RGBColor[1, 0, 0]],
   FilledPlot[npdf, {x, 1, 2}, Fills -> RGBColor[1, 0, 0]]]


Hope that helps,
Daniel


  • Prev by Date: Re: How to install Combinatorica
  • Next by Date: Re: Optional Alternatives
  • Previous by thread: Re: how to graphically fill the tails of a normaldistribution
  • Next by thread: Re: how to graphically fill the tails of a normal distribution