Method Shrinkwrap Messes up editting Graphics

3

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

Graphics[{LightGray, Disk[],
  Inset[
   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[],
  Inset[
    Graphics[{Rectangle[]},
      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.

William

Posted 2013-08-15T18:49:49.540

Reputation: 7 329

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. – William – 2013-08-15T21:23:01.797

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 – 2013-08-16T01:39:09.227

@halirutan V8.0.1 and Windows 7 – William – 2013-08-16T01:40:40.673

2Confirmed problem with v9 on Windows 7. Using ImagePadding -> 0, PlotRangePadding -> 0 instead of the method option seems to be a workaround. – Simon Woods – 2013-08-16T07:15:01.350

@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 http://pastebin.com/BayM6hx7

– William – 2013-08-16T15:45:57.343

No answers