MathGroup Archive 2008

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

Search the Archive

Re: How to get the size of Inset in Graphics?


  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
==========================================================


  • Prev by Date: Re: Bug of Units-package in combination with DynamicModule
  • Next by Date: Re: Symbolic complex conjugation?
  • Previous by thread: How to get the size of Inset in Graphics?
  • Next by thread: Re: How to get the size of Inset in Graphics?