PlotLabel¶
-
PlotLabel
(x, y, str, args...; kvs...)¶ PlotComponent
to add a label with text given bystr
at position(x, y)
. The coordinatesx
andy
are normalized to range between 0 and 1.args
andkvs
can be used to set additional style attributes.
Example¶
x = linspace(0, 10)
p = plot(x, sin.(x))
l = PlotLabel(0.5, 0.8, "Hello World!")
add(p, l)