MathGroup Archive 2004

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

Search the Archive

Re: The Histogram[] command

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


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

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


"Doug" <umdougmm at> wrote in message news:<cei9bv$2m2$1 at>...
> 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[]