MathGroup Archive 2012

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

Search the Archive

Retrieving numerical value for ImagePadding

Note: I cross posted this to

Consider the following graphic:

    g = Graphics[Circle[], Frame -> True, FrameLabel -> {"one", "two"}]

Retrieving the `ImagePadding` by traditional means does not work:

    AbsoluteOptions[g, ImagePadding]

    (* ==> {ImagePadding -> All} *)

My guess for the reason behind this is that it is the Front End that can compute the actual value of the ImagePadding to use, so this can't be obtained without first rasterizing the image in the front end.

Is there some trick to get a numerical value for the ImagePadding so I can align two figures (make them have the same ImagePadding) *and* use an optimal value (not too small cutting off something, not too large wasting space), perhaps by asking the Front End directly?

Note that the ImagePadding is in absolute coordinates (printer's points, not plot coordinates).

  • Prev by Date: Re: How I can I optimize the following code in order to
  • Next by Date: Re: How best to implement a hash table in Mathematica
  • Previous by thread: Re: LinkOpen problem
  • Next by thread: Re: How I can I optimize the following code in order to get very