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.

  • $\begingroup$ 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. $\endgroup$ – William Aug 15 '13 at 21:23
  • $\begingroup$ 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. $\endgroup$ – halirutan Aug 16 '13 at 1:39
  • $\begingroup$ @halirutan V8.0.1 and Windows 7 $\endgroup$ – William Aug 16 '13 at 1:40
  • 2
    $\begingroup$ Confirmed problem with v9 on Windows 7. Using ImagePadding -> 0, PlotRangePadding -> 0 instead of the method option seems to be a workaround. $\endgroup$ – Simon Woods Aug 16 '13 at 7:15
  • $\begingroup$ @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 pastebin.com/BayM6hx7 $\endgroup$ – William Aug 16 '13 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.