Skip to content
Jim Pivarski edited this page Mar 15, 2015 · 1 revision
  1. summary Draw text at a given point in local coordinates
  2. labels Reference,Version1

_(This page applies only to the 1.x branch of SVGFig.)_

class Text

Draws at text string at a specified point in local coordinates.

Arguments

  • Text(x, y, d, attribute=value)*
x, y _*required*_ location of the point in local coordinates
d _*required*_ text/Unicode string
attribute=value pairs _keyword list_ SVG attributes

SVG method

Text has an *SVG* method, as described in [GeneralPrimitive General features for all primitives].

Defaults

Text has the following defaults, as described in [GeneralPrimitive General features for all primitives].

defaults {"stroke":"none", "fill":"black", "font-size":5}

Clone this wiki locally