5
$\begingroup$

I'm liking the new plot themes in Mathematica 10, but finding that I can't override the options it sets. For example,

Plot[x^2, {x, 0, 10}, AxesLabel -> {x}, PlotTheme -> "Scientific"]

returns the right plot but without the axis label. How do I fix this?

$\endgroup$
12
$\begingroup$

The theme generates a framed plot. You need to use FrameLabel,e.g.

Plot[x^2, {x, 0, 3}, FrameLabel -> {Style[x, 30], Style[y, 30]}, 
 PlotTheme -> "Scientific"]

enter image description here

$\endgroup$
  • 1
    $\begingroup$ You took the time to style your labels. +1 :-) $\endgroup$ – Mr.Wizard Jul 18 '14 at 13:23
5
$\begingroup$

"Scientific" is a framed plot style therefore you need FrameLabel:

Plot[x^2, {x, 0, 10}, FrameLabel -> {x}, PlotTheme -> "Scientific"]

enter image description here

$\endgroup$
  • 1
    $\begingroup$ I was to slow...alas $\endgroup$ – ubpdqn Jul 18 '14 at 13:16

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.