When I make an animation of Plot3D
using ListAnimate
it looks decent. But when I export the same frames with Export
, the z-axis tick labels jump back and forth. Here's a minimal example:
f = Table[
Plot3D[(1 + Sin[2 \[Pi] t]) E^(-(x - Sin[2 \[Pi] t])^2 - (y - Cos[2 \[Pi] t])^2),
{x, -2, 2}, {y, -2, 2}, PlotLabel -> t, PlotRange -> All, ViewPoint -> {-2, -2, 1}]
, {t, 0, 0.95, 0.05}];
ListAnimate[f]
(* looks OK *)
Export["f.gif", f, "AnimationRepetitions" -> \[Infinity]]
(* looks bad *)
Any idea how I can get Export
to behave like ListAnimate
?
PlotRange->All
? $\endgroup$ – xzczd Jul 8 '20 at 2:49ListAnimate
the same problem where the ticks switch back and forth from the left to right side. Luckily @TimLaska's answer fixes the problem. $\endgroup$ – Chris K Jul 8 '20 at 3:21PlotRange -> {All, All, {0, 2}}
gives the desired result withListAnimate
andExport
(Mathematica 12.0, Windows 10). $\endgroup$ – JimB Jul 8 '20 at 3:30SphericalRegion->True
reduces the jumpiness inListAnimate
. So does addingImagePadding -> 30
(by itself withoutSphericalRegion
). $\endgroup$ – JimB Jul 8 '20 at 3:44