12

Consider some graphics which spill over the plot range, like these:

Graphics[{Red, Disk[{0, 0}, 1]}, 
 PlotRange -> {{-1.1, .9}, {-1.1, 1.1}}, Frame -> True, 
 PlotRangeClipping -> False, ImagePadding -> 20, FrameStyle -> Thick]

Mathematica graphics

Can I make the graphics be drawn in front of the frame without drawing the frame manually? Is there a possibly undocumented option for this (maybe a Graphics Method option)?

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263

1 Answers1

16

A few wild guesses (trying to mimic the "GridLinesInFront" suboption of the option Method) gave the following:

Graphics[{Red, Disk[{0, 0}, 1]}, 
  PlotRange -> {{-1.1, .9}, {-1.1, 1.1}}, Frame -> True, 
  PlotRangeClipping -> False, ImagePadding -> 20, FrameStyle -> Thick, 
  Method -> {"FrameInFront" -> False}]

enter image description here

This option is documented (see under Details and Options) since version 10.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
kglr
  • 394,356
  • 18
  • 477
  • 896