Text¶
-
class
aas_timeseries.layers.
Text
(parent=None, *args, **kwargs)[source]¶ Bases:
aas_timeseries.layers.BaseLayer
A text label.
Attributes Summary
The horizontal text alignment.
The rotation angle of the text in degrees (default 0).
The vertical text baseline.
The color of the text.
The opacity of the text from 0 (transparent) to 1 (opaque).
The text label to show.
The date/time at which the text is shown.
The y value at which the text is shown.
The weight of the text.
Methods Summary
to_mpl
(self, ax[, yunit])Add the layer to a Matplotlib
Axes
instance.to_vega
(self[, yunit])Convert the layer to its Vega representation.
Attributes Documentation
-
align
¶ The horizontal text alignment.
One of
'left'
(default),'center'
,'right'
.
-
angle
¶ The rotation angle of the text in degrees (default 0).
-
baseline
¶ The vertical text baseline.
One of
'alphabetic'
(default),'top'
,'middle'
,'bottom'
.
-
color
¶ The color of the text.
-
opacity
¶ The opacity of the text from 0 (transparent) to 1 (opaque).
-
text
¶ The text label to show.
-
time
¶ The date/time at which the text is shown.
-
value
¶ The y value at which the text is shown.
-
weight
¶ The weight of the text.
One of
'normal'
(default),'bold'
.
Methods Documentation
-