5

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?

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
  • 1
    Same behaviour on Windows 10. FrameTicksStyle -> Background -> None fixes the frame ticks for me. – Simon Woods Jun 19 '16 at 18:59
  • @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. – Szabolcs Jun 19 '16 at 19:04
  • 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. – Simon Woods Jun 19 '16 at 19:20
  • @Simon Directive works, but I found it strange to see options in a Directive (although I think I've seen it before...) – Szabolcs Jun 19 '16 at 19:22
  • I am not seeing the problem with V10.4.1 running on OS X 10.10.2 – m_goldberg Jun 20 '16 at 00:44
  • I don't see this problem either. MMA 10.0.1.0, OS X 10.10.5. – N.J.Evans Jun 20 '16 at 14:56
  • @m_goldberg Ah, so it's stylesheet dependent then! Do you remember which stylesheet you used? – Szabolcs Jun 21 '16 at 08:34
  • It is very much stylesheet dependent. As far I can tell, Standard Report is the only style which exhibits this problem. Try converting your test notebook to any other style and see if you don't find that it is only Standard Report that is guilty. – m_goldberg Jun 21 '16 at 14:55

1 Answers1

5

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

Simon Woods
  • 84,945
  • 8
  • 175
  • 324