ZYMIN

生活 | 学习 | 科研 | 育儿

0%

mathematica常见问题解决方法

如何在使用PlotTheme->“Scientific”选项的时候设置轴标签

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

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

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

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

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