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