Qurak

Label a plot

How-to 6 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

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

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client