|
SOLUTIONS
|
MATHEMATICA 内置符号
Labeled
Labeled[expr, lbl]
带标签 lbl 显示 expr.
Labeled[expr, lbl, pos]
把标签 lbl 放在 pos 指定的位置.
Labeled[expr, {lbl1, lbl2, ...}, {pos1, ...}]
把标签
放在位置
上.
更多信息更多信息
- Labeled 可以和图形及其它表达式一起使用.
-
通常的形式是: -
side 在指定侧的中央 {side,align} 按照指定的排列规则显示在指定侧 - side 通常的形式包括 Bottom、Left、Top、Right.
- align 通常形式包括 Center、Left、Right、Bottom、Top.
- 图表函数如 BarChart 和 PieChart 中,可以支持某些额外的特殊位置如
和
. - Labeled[expr, lbls, All] 相当于 Labeled[expr, lbls, {Bottom, Left, Top, Right}].
- pos 的默认设置一般为 Bottom.
- Labeled[expr, ...] 不影响 expr 的自动换行.
- 可以给出下列选项:
-
Alignment {Center,Baseline} 元素水平和垂直对齐 Background None 使用何种背景色 BaselinePosition Automatic 如何去对齐周围文本基线 BaseStyle {} 带标签表达式的基本格式指定 Frame None 是否画边框 FrameMargins 0 边框内留的边幅 FrameStyle Automatic 边框所用样式 ImageMargins 0 显示区以外加的边幅 ImageSize Automatic 显示区域的整体图像大小 LabelStyle {} 标签样式指定 RotateLabel False 是否旋转左、右标签 RoundingRadius 0 圆角半径 Spacings Automatic 横向和纵向标签间距 - BaseStyle 和 LabelStyle 的设置通常是附在目前的样式表中
和
给出的默认样式上.
版本 6 的新功能 | 版本 7 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
