Mathematica 9 is now available
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: The Histogram[] command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49816] Re: The Histogram[] command
  • From: saveez at hotmail.com (Ali)
  • Date: Tue, 3 Aug 2004 01:10:48 -0400 (EDT)
  • References: <cei9bv$2m2$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Doug,

Use PlotRange instead of PlotRegion but the output may not look that
nice.

A good alternative is to create your own histogram using BinCounts and
then ListPlot it.

-Ali

"Doug" <umdougmm at hotmail.com> wrote in message news:<cei9bv$2m2$1 at smc.vnet.net>...
> Do any of you know how I could force the histogram output for two different
> lists to appear starting and ending at the same x-local.
> 
> For example, I have a list of observed data points and a list of a
> theoretically produced distribution.
> 
> Histogram[observed];
> Histogram[theoretical];
> 
> Produces very nice plots, but one has the y-axis starting at x=-1 while the
> other has its at the origin.  One also displays different number of x-ticks
> (but this is a smaller inconvenience).  I tried passing GraphicsOptions to
> the Show command, but some of these are not recognized.  For example
> 
> h1 = Histogram[observed];
> h2 = Histogram[theoretical];
> Show[h1,PlotRegion->{{xmin,xmax},{ymin,ymax}}];
> Show[h2,PlotRegion->{{xmin,xmax},{ymin,ymax}}];
> 
> doesn't work?  Isn't Histogram a Graphics Object?
> 
> Doug


  • Prev by Date: Re: Combinations
  • Next by Date: Re: Using "Sum" (i = 1 ... N) in a function definition
  • Previous by thread: The Histogram[] command
  • Next by thread: Re: Re: Question on Compile[]