From: Helen Read on 4 Dec 2009 04:38 Jeff wrote: > I want to use Manipulate to slide the range of a Plot. I get jitters > when an axis tick mark and associated number coincides with the frame > edge. A simple example is: > > Manipulate[ > Plot[Sin[x], {x, s, s + 10}, PlotRange -> {{s, s + 10}, {-1, 1}}, > Frame -> True, Axes -> False], {s, 0, 20}] > > Anyone know how to stop the jitters? Add some ImagePadding. Manipulate[ Plot[Sin[x], {x, s, s + 10}, PlotRange -> {{s, s + 10}, {-1, 1}}, Frame -> True, Axes -> False, ImagePadding -> 20], {s, 0, 20}] -- Helen Read University of Vermont
From: Albert Retey on 4 Dec 2009 04:38
Him > I want to use Manipulate to slide the range of a Plot. I get jitters > when an axis tick mark and associated number coincides with the frame > edge. A simple example is: > > Manipulate[ > Plot[Sin[x], {x, s, s + 10}, PlotRange -> {{s, s + 10}, {-1, 1}}, > Frame -> True, Axes -> False], {s, 0, 20}] > > Anyone know how to stop the jitters? Use a constant value for ImagePadding which is large enough for all tick values: Manipulate[ Plot[Sin[x], {x, s, s + 10}, PlotRange -> {{s, s + 10}, {-1, 1}}, Frame -> True, Axes -> False, ImagePadding -> 20], {s, 0, 20}] you probably need to adopt the value for ImagePadding... hth, albert |