cls_BaseText - almarklein/visvis GitHub Wiki

Inherits from object.

Base object for the Text wobject and Label wibject. fontname may be 'mono', 'sans', 'serif' or None, in which case the vv.settings.defaultFontName is used.

The BaseText class implements the following properties:
fontName, fontSize, halign, text, textAngle, textColor, textSpacing, valign

The BaseText class implements the following methods:
GetVertexLimits, Invalidate, UpdatePosition

Properties

Get/Set the font type by its name.

Get/Set the size of the text.

Get/Set the horizontal alignment. Specify as:

  • 'left', 'center', 'right'
  • -1, 0, 1

Get/Set the text to display.

Get/Set the angle of the text in degrees.

Get/Set the color of the text.

Get/Set the spacing between characters.

Get/Set the vertical alignment. Specify as:

  • 'up', 'center', 'down'
  • 'top', 'center', 'bottom'
  • -1, 0, 1

Methods

Get the limits of the vertex data. Returns (xmin, xmax), (ymin, ymax)

Invalidate this object, such that the text is recompiled the next time it is drawn.

Updates the position now, Compiles the text if necessary.

⚠️ **GitHub.com Fallback** ⚠️