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
  • 7,595
  • 2
  • 22
  • 70
  • 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 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 01:39
  • @halirutan V8.0.1 and Windows 7 – William Aug 16 '13 at 01:40
  • 2
    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 07: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 http://pastebin.com/BayM6hx7 – William Aug 16 '13 at 15:45

0 Answers0