4
$\begingroup$

When I click and drag a 3D plot it rotates and when I release the mouse, the size of the image changes. This is distracting to me, I'd much rather have it look the same when I release the mouse button

Edit: Spherical region has improved it quite a bit but there is still some resizing:

While holding down

enter image description here

When I release

enter image description here

$\endgroup$
6
  • 1
    $\begingroup$ Have a look at the option SphericalRegion. $\endgroup$ Jun 6, 2015 at 9:06
  • 1
    $\begingroup$ Still moves around. $\endgroup$ Jun 6, 2015 at 9:09
  • $\begingroup$ You did set it to True, didn't you? Why not post the thing you have trouble with… oh, and look at RotationAction too. $\endgroup$ Jun 6, 2015 at 9:13
  • $\begingroup$ Edited the original post $\endgroup$ Jun 6, 2015 at 9:16
  • 1
    $\begingroup$ SphericalRegion->True and RotationAction->"Clip" seem redundant, choose the one or the other. To avoid the clipping you can just zoom out or add some padding around the image for example with option ImagePadding->20 $\endgroup$
    – SquareOne
    Jun 6, 2015 at 20:39

1 Answer 1

2
$\begingroup$
Plot3D[Sin[x + y^2], {x, -3, 3} , {y, -2, 2}, SphericalRegion->True, RotationAction -> "Clip"]
$\endgroup$
1
  • $\begingroup$ The answer, while technically correct, is not the best response -- all of the suggestions in the answer are coming from the comments. $\endgroup$
    – Sektor
    Jun 6, 2015 at 10:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.