MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

ImagePadding and PlotRange anomaly

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112471] ImagePadding and PlotRange anomaly
  • From: István Zachar <zac at freemail.hu>
  • Date: Thu, 16 Sep 2010 06:02:06 -0400 (EDT)

Dear All,

when I manipulate the y range of plots it is often a problem that the
plot size (the actual range displayed) changes size due to the size of
frameticks. ImagePadding can deal with the problem for some extent,
but definitely cannot solve it. See the attached code, where I
manipulate the left frame scale from a range of {0, 10^10} to {0,
10^20}. This in my machine causes the resizing of the framebox of the
plot at y = 16,y =  17 and y = 18. What is the cause of it? How can it
be eliminated?

Thanks in advance,
Istvan


Manipulate[

 Framed@Plot[x, {x, 0, 4 \[Pi]},
   FrameLabel -> {"x axis", "y axis"},
   PlotLabel -> "Plot label",
   ImageSize -> {400, 400},
   PlotRange -> {{0, 4 \[Pi]}, {0, 10.^y}},
   PlotRangePadding -> Scaled[0.02],
   ImagePadding -> {{Scaled[.07], 0}, {Scaled[.04], Scaled[.01]}},
   AspectRatio -> 1, Axes -> False, Frame -> True,
   BaseStyle -> {FontSize -> 14, FontFamily -> "Times"},
   RotateLabel -> True
   ],

 {{y, 17, "y max (10^y)"}, 10, 20, 1, Appearance -> "Labeled"}
 ]


  • Prev by Date: Re: get a table of coordinates from an image of a graph
  • Next by Date: Re: How to rescale the x-axis in an nonlinear way?
  • Previous by thread: Re: Plotting Quartic Solutions in Polar Coordinates
  • Next by thread: Re: ImagePadding and PlotRange anomaly