这一篇我们来讲一下 关于标签的使用
首先来看一下最基本的使用
Plot[
Sin[x], {x, 0, 4 Pi},
AxesStyle -> Lighter[Gray, .3],
PlotLabel -> Sin[x]
]
画出来的图像是这样的
但是这样的标签太小了,我们试着把他调大一点,并且把字体改一下
Plot[
Sin[x], {x, 0, 4 Pi},
AxesStyle -> Lighter[Gray, .3],
PlotLabel -> Style[Sin[x], "Title", Italic, Orange]
]
得到下面的图
下面使用 Labeld可以在四周加上标签
cha = ToCharacterCode[str = "this is a string"];
Labeled[
ListPlot[cha, Filling -> Axis],
{Style["字符串字符代码", "Subsection", 14],
Column[{str, Style["This is string"]}]
}, {Bottom, Right}
]
得到下面的图
最后来一个小小的总结吧
(*使用 Column Row Grid 来布局*)
Column[{
Style["Title", "Title", 70],
Style["Subtite", "Subtitle", 50],
Plot[Sin[x], {x, 0, 2 Pi},
PlotStyle -> Directive[Dashed, Thickness[.01]], ImageSize -> 500],
Style["Source", 16]
}]
关于布局其实还要自己慢慢看看
明天还有一个小尾巴
2016/8/17
以上,所以
本文介绍了Mathematica中如何进行标签的使用,包括调整标签大小、更改字体,以及利用Labeld在图像四周添加标签。通过示例展示了不同设置下的图像效果,为数据可视化提供了指导。
2090

被折叠的 条评论
为什么被折叠?



