I'm using the standard report stylesheet in Mathematica and when I output a plot, I've set it up so that I get a white background, however the axis labels still have a gray background. How do I change it to white? Here is a small example (you have to change your stylesheet to StandardReport):

Plot[Sqrt[x], {x, 0, 10},
 PlotStyle -> {Thickness[0.025], Red},
 AxesLabel -> {"Prob[Drug,X]", "Prob[Drug,XgivenPos]"},
 PlotRange -> All, AspectRatio -> 1/2, Background -> White

enter image description here

  • $\begingroup$ LabelStyle -> Directive[Blue, Bold, Background -> White] $\endgroup$ – DavidC Mar 28 '13 at 21:57
  • $\begingroup$ I don't have this problem in version 7 under Windows. Your input produces this: i.stack.imgur.com/wwDJF.png $\endgroup$ – Mr.Wizard Mar 28 '13 at 22:04
  • $\begingroup$ Mma 8.0 shows the same picture as @Mr.Wizard's $\endgroup$ – Dr. belisarius Mar 28 '13 at 22:06
  • $\begingroup$ @Mr.Wizard Hmm, in Linux under Mathematica version 9.0.1 I get the exact same behavior as the OP. $\endgroup$ – halirutan Mar 28 '13 at 22:07
  • $\begingroup$ Using Mathematica 9.0.1 on OSX here... $\endgroup$ – Black Milk Mar 28 '13 at 22:11

You could set the LabelStyle option in every plot or globally for all Plot's

SetOptions[Plot, LabelStyle -> Directive[Background -> White]]

This should work.

enter image description here

| improve this answer | |
  • $\begingroup$ Thank you very much, this worked perfectly. I'll upvote as soon as I get more rep. $\endgroup$ – Black Milk Mar 28 '13 at 22:14

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.