MathGroup Archive 2007

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

Search the Archive

Re: Options for Histogram3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72920] Re: [mg72897] Options for Histogram3D
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 25 Jan 2007 06:55:26 -0500 (EST)
  • Reply-to: hanlonr at cox.net

Needs["Graphics`"];
data=Table[{Random[],Random[]},{1000}];
hg=Histogram3D[data];

The HistogramRange option only affects the x and y values.

??HistogramRange

HistogramRange is an option of histogram functions that specifies the lower \
and upper limits of the points to be included in the histogram.  Possible \
values are Automatic (default), HistogramRange -> {min, max}, or for \
bivariate data, HistogramRange -> {{xmin, xmax}, {ymin, ymax}}.

Histogram3D[data,HistogramRange->{{0.25,0.75},{0.25,0.75}}];

While Histogram3D does not appear to pass the PlotRange option, you can pass it through Show

Show[Histogram3D[data,DisplayFunction->Identity],
    PlotRange->{Automatic,Automatic,{0,10}},DisplayFunction->$DisplayFunction];


Bob Hanlon

---- "Allen wrote: 
> 
> Hello,
> 
> I have the following code:
> 
> Needs["Graphics`"]
> data==Table[{Random[],Random[]},{1000}];
> Histogram3D[data]
> 
> does anyone know how to set the range of the "z-axis".  The option
> HistogramRange->{{0,1},{0,1},{0,10}} produces an error.  The PlotRange
> option has no effect.  I've tried the help documentation and found
> nothing helpful.  Thanks for any advice.
> 
> matthew allen
> 


  • Prev by Date: Re: Option for continuous plot
  • Next by Date: Re: Option for continuous plot
  • Previous by thread: Re: Options for Histogram3D
  • Next by thread: Re: Problem with text rendering on Linux.