1
$\begingroup$

I have the code below to animate a point. During the animation, the axes are shaking. I have added PlotRange, and PlotRangePadding -> None. Still shaking. If I export the animation to a gif, the Axes will stop shaking. Can anyone help?

Animate[Show[
  Graphics[
   {
    PointSize[0.02],
    Point[{Cos[t], Cos[t]}]
    },
   PlotRange -> {{-2, 2}, {-2, 2}},
   Axes -> True
   ],
  PlotRange -> {{-2, 2}, {-2, 2}},
  PlotRangePadding -> None
  ], {t, 0, 10, 0.1}]
$\endgroup$
5
  • 1
    $\begingroup$ This works fine on v12.1.1, which version are you on? $\endgroup$
    – flinty
    Jul 8, 2020 at 16:59
  • 1
    $\begingroup$ This works fine on v. 12.0 on Win10-64 as well. $\endgroup$
    – MarcoB
    Jul 8, 2020 at 17:06
  • $\begingroup$ When folks are tried of asking what version number the OP is using, please check is-there-a-way-to-remind-someone-posting-a-question-to-mark-the-version-number-i and may be try to give an answer to finally solve this problem. $\endgroup$
    – Nasser
    Jul 8, 2020 at 17:10
  • $\begingroup$ mine is v12.0, Mac Os $\endgroup$ Jul 8, 2020 at 17:20
  • $\begingroup$ try to add ImagePadding $\endgroup$
    – Nasser
    Jul 8, 2020 at 18:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.