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.

  • $\begingroup$ I think your question is answered here. Would you please try those methods and either confirm the solution or describe how they fail? $\endgroup$
    – Mr.Wizard
    Commented May 27, 2013 at 17:27
  • $\begingroup$ 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. $\endgroup$
    – polarka
    Commented May 27, 2013 at 17:32

2 Answers 2


Update: Alternative solution

Here is a more convenient workaround, using an undocumented Method option:

Manipulate[Plot[x^2, {x, -2, 2}], {dummy, 0, 1}, 
 Method -> {"ContentAreaBackground" -> LightYellow}]

Mathematica graphics

Original answer

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

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

[Image similar to above, but with a tighter frame]

You may set FrameMargins by trial and error.

  • $\begingroup$ Thanks! All I needed is to put "FrameMargins -> {{-6, -8}, {-6, -33}}" before Manipulate's ending "]" This is how it looks like now. $\endgroup$
    – polarka
    Commented May 27, 2013 at 20:46

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

      Plot[Sin[a x], {x, 0, 5},
      {a, 1., 5.}, Paneled->False,LabelStyle->{FontSize->14,White}],

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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