Qurak

Label a plot

操作指南 6 步,在同一个会话中按顺序运行。每一步都在引擎上执行过,下面的输出就是它实际产生的。

第 1 步
Plot[Sin[x], {x, 0, 22}, PlotLabel -> "sin(x)"]
输出
-Graphics-
第 2 步
Plot[Sin[x], {x, 0, 22}, PlotLabel -> Style["sin(x)", FontSize -> 18]]
输出
-Graphics-
第 3 步
Plot[Sin[x], {x, 0, 22}, PlotLabel -> Style["sin(x)", FontSize -> 18], Background -> StandardYellow]
输出
-Graphics-
第 4 步
Labeled[Plot[Sin[x], {x, 0, 22}], "sin(x)"]
输出
Labeled[-Graphics-, sin(x)]
第 5 步
Labeled[Plot[Sin[x], {x, 0, 22}], Style["sin(x)", "Graphics"]]
输出
Labeled[-Graphics-, sin(x)]
第 6 步
Labeled[Plot[Sin[x], {x, 0, 22}], Style["sin(x)", "Graphics"], Background -> StandardYellow]
输出
Labeled[-Graphics-, sin(x), Background -> StandardYellow]

用到的函数

相关操作示例

全部操作示例 · 函数参考 · 从 MCP 客户端使用