Update examples.jl
This commit is contained in:
parent
508c47895c
commit
2df85eb0fd
@ -369,10 +369,12 @@ const _examples = PlotExample[
|
|||||||
"Annotations",
|
"Annotations",
|
||||||
"""
|
"""
|
||||||
The `annotations` keyword is used for text annotations in data-coordinates. Pass in a
|
The `annotations` keyword is used for text annotations in data-coordinates. Pass in a
|
||||||
tuple `(x, y, text)`, or a vector of annotations, each of which is a tuple of `x`, `y`
|
tuple `(x, y, text)`, a vector of annotations, each of which is a tuple of `x`, `y`
|
||||||
and `text`.
|
and `text`. You can position annotations using relative coordinates with the syntax
|
||||||
`text` may be a simple `String`, or a `PlotText` object, which can be
|
`((px, py), text)`, where for example `rx=.25` positions the annotation at `25%` of
|
||||||
built with the method `text(string, attrs...)`.
|
the plot's width.
|
||||||
|
`text` may be a simple `String`, or a `PlotText` object, which can be built with the
|
||||||
|
method `text(string, attrs...)`.
|
||||||
This wraps font and color attributes and allows you to set text styling.
|
This wraps font and color attributes and allows you to set text styling.
|
||||||
`text` may also be a tuple `(string, attrs...)` of arguments which are passed
|
`text` may also be a tuple `(string, attrs...)` of arguments which are passed
|
||||||
to `Plots.text`.
|
to `Plots.text`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user