Group Abstract Group Abstract

Message Boards Message Boards

Avoid graphics-jitter when Animating Plot?

Anonymous User
Anonymous User
Posted 9 years ago

On my system, this produces a result where the vertical-axis labels jitter left and right by several pixels as the animation progresses:

Module[{tableOfExamples = 
   Table[Plot[E^(-Pi x^2), {x, -Pi, +Pi}, 
     PlotRange -> {Full, {-1.2, +1.2}}, ImageSize -> 270], 32]}, 
 Animate[tableOfExamples[[k]], {k, 1, Length[tableOfExamples], 1}]]

All 32 plots in the animated table are identical, so there's no difference among them to account for the jitter.

I see the jitter when I have magnification for the notebook set to 125% (setting in the lower-right corner of the notebook). When I change the magnification to 100% or 150%, I don't see any jitter.

I'm on Windows 10, and my screen resolution is 1920 x 1080.

enter image description here

The jitter on my screen is faster, but my screen-capture software under-sampled it.

POSTED BY: Anonymous User
6 Replies

I see no jitter in any version on a Mac, regardless of magnification. But the front end is known to have some annoying pixel rounding issues, so I am not surprised.

Some tips:

  • Set an explicit numerical PlotRange (not Full or Automatic), and see if it fixes the issue.
  • Look up ListAnimate
  • The jitter would be an issue if you export the animation to show to others. Is it still there in that case?
POSTED BY: Szabolcs Horvát

With Mathematica 11.1 and Windows 7 I don't see any jitter at any magnification. Nor with extremely fast or slow animation rates.

The site is flaky. Sometimes it takes time until posts appear.

POSTED BY: Szabolcs Horvát
Anonymous User
Anonymous User
Posted 9 years ago
POSTED BY: Anonymous User
Anonymous User
Anonymous User
Posted 9 years ago
POSTED BY: Anonymous User
Anonymous User
Anonymous User
Posted 9 years ago

Thank you.

POSTED BY: Anonymous User
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard