12
$\begingroup$

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)?

$\endgroup$
12
  • 1
    $\begingroup$ I realize that this may be considered unreasonable, but I have some requirements to follow. $\endgroup$
    – Szabolcs
    Sep 8, 2014 at 16:22
  • 1
    $\begingroup$ @BrettChampion I'd take objection with the "simple to find" bit :P Anyway, closed or not, I got my answer, which is what I wanted. Being on the receiving end (and also: having had to learn new technologies recently and experiencing the newbie perspective again), I do think we have overused this closed reason here. I am definitely guilty of that. $\endgroup$
    – Szabolcs
    Sep 8, 2014 at 16:44
  • 1
    $\begingroup$ @rhermans Consider it a way of encouraging people to re-chek the docs, even if they think they know what is (or isn't) in them. And besides, how often do you get a chance to cast a close vote on a 50+K user? :-) $\endgroup$ Sep 8, 2014 at 17:24
  • 1
    $\begingroup$ possible duplicate of Why are my plots displaying behind the axes? $\endgroup$ Sep 8, 2014 at 18:20
  • 1
    $\begingroup$ @Szabolcs The close reason when I chose it used "easy to find", rather than "simple to find". And you'd already mentioned 'a Graphics Method option', so you were clearly thinking along the right path... But I agree that we do overuse this reason for closing. Anything is easy to find, if you already know where it is. $\endgroup$ Sep 8, 2014 at 21:13

1 Answer 1

16
$\begingroup$

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.

$\endgroup$
0

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.