这一篇我们来讲一下 关于标签的使用
首先来看一下最基本的使用
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
以上,所以