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

MathGroup Archive 2008

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

Search the Archive

How to get the size of Inset in Graphics?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89979] How to get the size of Inset in Graphics?
  • From: lehin.p at gmail.com
  • Date: Wed, 25 Jun 2008 06:30:57 -0400 (EDT)

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?


  • Prev by Date: Re: Finding middle of edge in a graph
  • Next by Date: Re: How can I evaluate this statement?
  • Previous by thread: Re: Piecewise and multiple values
  • Next by thread: Re: How to get the size of Inset in Graphics?