Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8699
| From | Szabolcs <szhorvat@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Retrieving numerical value for ImagePadding |
| Date | 2012-02-22 10:34 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ji2gb9$kb7$1@smc.vnet.net> (permalink) |
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).
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Retrieving numerical value for ImagePadding Szabolcs <szhorvat@gmail.com> - 2012-02-22 10:34 +0000
csiph-web