Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: AspectRatio unpredictable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121435] Re: AspectRatio unpredictable
  • From: Heike Gramberg <heike.gramberg at gmail.com>
  • Date: Thu, 15 Sep 2011 04:38:49 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201109140912.FAA15860@smc.vnet.net>

In my version of Mathematica (8.0.1 for OS X) the boxes stay the same 
shape when I rotate the graphs in your examples, but
you could try setting BoxRatios->{1,1,1} if you want the bounding box to 
be a cube. To keep the size of the graph the same
when rotating it you could try setting SphericalRegion->True.

Heike

On 14 Sep 2011, at 11:12, Christopher O. Young wrote:

> When I rotate this plot, the size and shape of the bounding box jumps around
> pretty wildly. It goes from cube-shaped, the way it should be, to a
> flattened box.
>
> There are pictures at http://home.comcast.net/~cy56/AspectRatio%20OK.pdf and
> http://home.comcast.net/~cy56/AspectRatio%20bug.png
>
> DiscretePlot3D[
> x * y,
>
> {x, -2, 2},
> {y, -2, 2},
>
> PlotRange -> {{-4, 4}, {-4, 4}, {-4, 4}},
> AspectRatio -> 1,
>
> ExtentSize -> 0.75,
>
> AxesLabel -> {"x", "y", "z"},
> PlotStyle -> Opacity[0.5],
> ColorFunctionScaling -> False,
> ColorFunction -> (Hue[0.35 (#3 + 4)/8 ] &)
> ]
>
> Here's a simpler example (which I should have done first):
>
> Plot3D[
> x y,
>
> {x, -2, 2},
> {y, -2, 2},
>
> AspectRatio -> 1
> ]
>
> Again, the bounding box starts off the wrong shape (not as tall as it is
> wide) and when you try to rotate it, the shape and size jump around
> unpredictably. It's only a cube, the way it should be, about half the time
> you're rotating it.
>
> Chris Young
> cy56 at comcast.net
>
>





  • Prev by Date: Re: How create new style sheet- Mathematica 8
  • Next by Date: Re: AspectRatio unpredictable
  • Previous by thread: AspectRatio unpredictable
  • Next by thread: Re: AspectRatio unpredictable