Text

class aas_timeseries.layers.Text(parent=None, *args, **kwargs)[source]

Bases: aas_timeseries.layers.BaseLayer

A text label.

Attributes Summary

align

The horizontal text alignment.

angle

The rotation angle of the text in degrees (default 0).

baseline

The vertical text baseline.

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.

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

to_mpl(self, ax, yunit=None)[source]

Add the layer to a Matplotlib Axes instance.

to_vega(self, yunit=None)[source]

Convert the layer to its Vega representation.