Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

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

1 Answer 1

up vote 4 down vote accepted

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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