MathGroup Archive 2012

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

Search the Archive

Graphics bounding box in source coordinates?

  • To: mathgroup at
  • Subject: [mg124124] Graphics bounding box in source coordinates?
  • From: David Bevan <david.bevan at>
  • Date: Tue, 10 Jan 2012 05:57:34 -0500 (EST)
  • Delivered-to:

Is there some way of getting the bounding box of Graphics in the source coordinate system? For example, Show can be used to display an array of objects on top of each other:


But I want to display them side by side. The following can be used to offset each object by a fixed interval:

graphicsArray[g_,x_]:=Graphics[MapIndexed[Translate[#1,{x (First[#2]-1),0}]&,First/@g]]

But I would like the gaps between each object to be of fixed size. So I want a version of graphicsArray which determines the value to pass to Translate by getting the bounding box info from each Graphic.

Rasterize[,"BoundingBox"] doesn't help because it returns the size in pixels after scaling:


My real objects are more complex than these simple circles (and I want something reusable with different objects).

Thanks for your help (and apologies if I missed something obvious in the documentation).

David %^>

  • Prev by Date: Re: Sorting point-arrays by rows and columns, cont.
  • Next by Date: Re: JordanDecompose[]
  • Previous by thread: Re: The domain parameter of Reduce[]
  • Next by thread: Question about typesetting