Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If you try resizing or moving the Inset in the following interface, the Graphics becomes incredibly jerky and borderline unusable.

Graphics[{LightGray, Disk[],
   Graphics[{Rectangle[]}, ImageSize -> 200, 
    Method -> {"ShrinkWrap" -> True}]]

Now if I remove Method -> {"ShrinkWrap" -> True} the interface (Drawing Tools) works fine but a border is added around the Graphic

Graphics[{LightGray, Disk[],
      ImageSize -> 200]]

Is there a way to Shrinkwrap or effectively remove the border without destroying the ability to edit Graphics? As an alternative, might there be a way to embed the Inset data directly into the Graphics. Currently it only serves the purpose of adding an ImageSize value to the Inset Graphics.

share|improve this question
A small possible temporary solution is to add Rasterize@Graphics in place of Graphics. It isn't really a permanent solution but the editor does work without glitching out. – Liam Aug 15 '13 at 21:23
On OSX I don't get the messed up graphics with "ShrinkWrap" -> True. Can you please specify you exact system and Mathematica version? This might be important. – halirutan Aug 16 '13 at 1:39
@halirutan V8.0.1 and Windows 7 – Liam Aug 16 '13 at 1:40
Confirmed problem with v9 on Windows 7. Using ImagePadding -> 0, PlotRangePadding -> 0 instead of the method option seems to be a workaround. – Simon Woods Aug 16 '13 at 7:15
@SimonWoods After reading 500's comment here it appears he is right that ImagePadding and PlotRangePadding due clip the padding, but honestly it probably varies between systems. Is is like a 1px or 2px difference. Example – Liam Aug 16 '13 at 15:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.