Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4932 > unrolled thread
| Started by | "Christopher O. Young" <cy56@comcast.net> |
|---|---|
| First post | 2011-09-14 09:12 +0000 |
| Last post | 2011-09-15 08:37 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
AspectRatio unpredictable "Christopher O. Young" <cy56@comcast.net> - 2011-09-14 09:12 +0000
Re: AspectRatio unpredictable "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-15 08:37 +0000
| From | "Christopher O. Young" <cy56@comcast.net> |
|---|---|
| Date | 2011-09-14 09:12 +0000 |
| Subject | AspectRatio unpredictable |
| Message-ID | <j4pr6e$fgi$1@smc.vnet.net> |
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@comcast.net
[toc] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2011-09-15 08:37 +0000 |
| Message-ID | <j4sdfi$scn$1@smc.vnet.net> |
| In reply to | #4932 |
On Wed, 14 Sep 2011 10:12:46 +0100, Christopher O. Young
<cy56@comcast.net> 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@comcast.net
>
AspectRatio is behaving as described: the 2-d projection of the 3-d figure
is drawn with the specified aspect ratio.
Your description of the 3-d aspect ratio in terms of the "bounding box" is
instructive. The option controlling this setting is in fact BoxRatios:
Plot3D[x y, {x, -2, 2}, {y, -2, 2}, BoxRatios -> {1, 1, 1}]
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web