5
$\begingroup$

This question already has an answer here:

I see this strange behaviour when both the containing cells and the graphics have a non-white background. I set the style of a notebook to "Standard Report" (Format -> Stylesheet) and did this:

Graphics[{Circle[], Text["Hello, world!"]}, Frame -> True, Background -> LightBlue]

enter image description here

I see this in each of the following versions: 9.0.1, 10.0.2, 10.3.1, 10.4.1 on OS X 10.11.5 and 10.3.1 and 10.4.1 on Windows 10.

Can others reproduce the problem?

Is there a simple fix for the frame ticks that doesn't require specifying tick labels explicitly?

$\endgroup$

marked as duplicate by Szabolcs, MarcoB, m_goldberg, Öskå, Yves Klett Jun 27 '16 at 6:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ Same behaviour on Windows 10. FrameTicksStyle -> Background -> None fixes the frame ticks for me. $\endgroup$ – Simon Woods Jun 19 '16 at 18:59
  • $\begingroup$ @Simon Can you post an answer? It is not obvious that that is a valid option ... I actually did try FrameTicksStyle -> {Background -> None}, which didn't work. $\endgroup$ – Szabolcs Jun 19 '16 at 19:04
  • $\begingroup$ I think a list is interpreted as being a list of styles for different sides of the frame, and a length 1 list is not valid. $\endgroup$ – Simon Woods Jun 19 '16 at 19:20
  • $\begingroup$ @Simon Directive works, but I found it strange to see options in a Directive (although I think I've seen it before...) $\endgroup$ – Szabolcs Jun 19 '16 at 19:22
  • $\begingroup$ I am not seeing the problem with V10.4.1 running on OS X 10.10.2 $\endgroup$ – m_goldberg Jun 20 '16 at 0:44
5
$\begingroup$

The same behaviour is observed in Mathematica 10.4.1 under Windows 10. A fix for the frame ticks is to use the option FrameTicksStyle -> Background -> None

enter image description here

$\endgroup$

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