1
$\begingroup$

Is it possible to prevent the values of axis of a 3D plot from moving?

If I run this code:

Animate[ParametricPlot3D[{x + a, y + a, x + y + a}, {x, -3, 3}, {y, -2, 2}], {a, 0, 5}]

my axis start to change their values. I would want the graph to move, not the values from the axis. I would prefer to see the fixed point O [0,0,0] (the center of the system).

$\endgroup$
2
$\begingroup$
Animate[ParametricPlot3D[{x + a, y + a, x + y + a}, {x, -3,  3}, {y, -2, 2},
    PlotRange -> {{-8, 8}, {-8, 8}, {-10, 10}}], {a, 0,  5}]

enter image description here

Or, use PlotRange -> {{-2, 8}, {-2, 8}, {-5, 10}}.

See also: Animate >> Possible Issues

Fix PlotRange to stop animations from jiggling.

$\endgroup$
  • $\begingroup$ @Abbey, they are the ranges of x, y and z coordinates to include in a plot. See the documentation page PlotRange $\endgroup$ – kglr Apr 12 '15 at 16:51
  • $\begingroup$ I've just figured that out. $\endgroup$ – Axx Apr 12 '15 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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