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 downloaded some demonstrations' sources (for example) and I want to change their colors. I am only stuck with the white outer background that is around the plot's yellow background.

I would like to see a part of the code where I should put in something like Background->Color.

share|improve this question
    
I think your question is answered here. Would you please try those methods and either confirm the solution or describe how they fail? –  Mr.Wizard May 27 '13 at 17:27
    
All of my sources are in manipulate which gives more items to be colored, your link shows only plots. This one is closer to what I am looking for, though they are less interactive plots. In my example the plot reads the position from Locator. I can't see where is the difference that creates this outer white background in my example that is not shown in that thread. –  polarka May 27 '13 at 17:32

2 Answers 2

up vote 2 down vote accepted

Manipulate is designed to put white space around the displayed expression. Here's a hack workaround:

Manipulate[
 Framed[Plot[x^2, {x, -2, 2}], Background -> LightYellow, FrameStyle -> None],
 {dummy, 0, 1}, FrameMargins -> {{-5, -5}, {-3, -5}}]

Manipulate output

You may set FrameMargins by trial and error.

share|improve this answer
    
Thanks! All I needed is to put "FrameMargins -> {{-6, -8}, {-6, -33}}" before Manipulate's ending "]" This is how it looks like now. –  polarka May 27 '13 at 20:46

Perhaps the following helps, using Framed and Paneled->False

Framed[
   Manipulate[
      Plot[Sin[a x], {x, 0, 5},
           BaseStyle->Orange,PlotStyle->Cyan,Background->GrayLevel[0.2]],
      {a, 1., 5.}, Paneled->False,LabelStyle->{FontSize->14,White}],
   Background->GrayLevel[0.2]]
share|improve this answer

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.