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 | Plot[x^2, {x, 0, 3}, FrameLabel -> {Style[x, 30], Style[y, 30]}, |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ZYMIN!