Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Retrieving numerical value for ImagePadding

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125118] Retrieving numerical value for ImagePadding
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Wed, 22 Feb 2012 05:32:12 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Note: I cross posted this to http://mathematica.stackexchange.com/q/2091/12

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