Re: How to get the size of Inset in Graphics?
- To: mathgroup at smc.vnet.net
- Subject: [mg90006] Re: [mg89979] How to get the size of Inset in Graphics?
- From: Curtis Osterhoudt <cfo at lanl.gov>
- Date: Thu, 26 Jun 2008 04:42:40 -0400 (EDT)
- Organization: LANL
- References: <200806251030.GAA18987@smc.vnet.net>
- Reply-to: cfo at lanl.gov
Or perhaps use Scaled?
ins = Grid[
Table[StringJoin["Some Text ", ToString[i*j]], {i, 1, 4}, {j, 1,
2}]];
Show[Plot[1/x, {x, 1, 10}, Epilog -> Inset[ins, Scaled[{0.75, 0.8}]]]]
On Wednesday 25 June 2008 04:30:57 lehin.p at gmail.com wrote:
> Hello,
> I have some Plot with Inset that goes outside of the plot area and so
> is clipped:
>
> ins = Grid[Table["Some Text " <> ToString[i j], {i, 1, 4}, {j, 1,
> 2}]];
> Plot[1/x, {x, 1, 10}, Epilog -> Inset[ins, {10, .5}]]
>
> I need to get the size of this Inset programmatically for making a
> simple procedure for automatic expanding the ImageMargings to show
> full Inset. The procedure will generate new options like this:
>
> Plot[1/x, {x, 1, 10}, Epilog -> Inset[ins, {10, .5}],
> PlotRangeClipping -> False, ImagePadding -> {{0, 50}, {10, 1}}]
>
> Does anyone know a way to get the size of this Inset programmatically?
--
==========================================================
Curtis Osterhoudt
cfo at remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================
- References:
- How to get the size of Inset in Graphics?
- From: lehin.p@gmail.com
- How to get the size of Inset in Graphics?