Engee 文档

标签

该页面正在翻译中。

标签是矩形框内的文本。 该 哈林n.英勇,英勇 属性始终指未旋转的水平和垂直。 这是不同于 文本,其中对齐是相对于文本流向的。

标签的大小是已知的,所以如果 告诉宽度告诉我们 设置为 真的 (默认值)GridLayout与 汽车 列或行大小可以缩小以适应。 </无翻译>

using CairoMakie

fig = Figure()

fig[1:2, 1:3] = [Axis(fig) for _ in 1:6]

supertitle = Label(fig[0, :], "Six plots", fontsize = 30)

sideinfo = Label(fig[1:2, 0], "This text is vertical", rotation = pi/2)

fig
d70f666

标签的对齐和行距可以像使用普通文本一样进行控制。 </无翻译>

using CairoMakie

f = Figure()

Label(f[1, 1],
    "Multiline label\nwith\njustification = :left\nand\nlineheight = 0.9",
    justification = :left,
    lineheight = 0.9
)
Label(f[1, 2],
    "Multiline label\nwith\njustification = :center\nand\nlineheight = 1.1",
    justification = :center,
    lineheight = 1.1,
    color = :dodgerblue,
)
Label(f[1, 3],
    "Multiline label\nwith\njustification = :right\nand\nlineheight = 1.3",
    justification = :right,
    lineheight = 1.3,
    color = :firebrick
)

f
25ef030

属性

对齐模式

默认值为 里面()

文本在其父GridLayout中的对齐方式。

颜色

默认值为 @继承:textcolor:黑色

文字的颜色。

字体

默认值为 :普通

文本的字体族。

字体大小

默认值为 @继承:字体大小16.0f0

文本的字体大小。

哈林

默认值为 :中心

文本在其建议的boundingbox中的水平对齐方式

身高

默认值为 汽车()

文本的高度设置。

理由说明

默认值为 :中心

文本的理由(:左,:右,:中心).

线高,线高

默认值为 1.0

文本的行距乘数。

填充物

默认值为 (0.0f0,0.0f0,0.0f0,0.0f0)

添加到文本框两侧的额外空间。

轮调

默认值为 0.0

以弧度为单位的文本的逆时针旋转。

告诉我们

默认值为 真的

控制父布局是否可以调整到此元素的高度

告诉宽度

默认值为 真的

控制父布局是否可以调整到此元素的宽度

文本

默认值为 "文本"

显示的文本字符串。

n.英勇,英勇

默认值为 :中心

文本在其建议的boundingbox中的垂直对齐方式

可见

默认值为 真的

控制文本是否可见。

阔度

默认值为 汽车()

文本的宽度设置。

word_wrap

默认值为 错误

对标签的建议宽度启用自动换行。