Qurak

Label a plot

How-to 6 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

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

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client