svgaddtext
svgaddtext |
Purpose
Synopsis
procedure svgaddtext(gid: string, x: real, y: real, msg: text)
procedure svgaddtext(x: real, y: real, msg: text)
Arguments
gid
|
Object group ID.
|
x
|
The x coordinate of the point.
|
y
|
The y coordinate of the point.
|
text
|
The text that will be displayed at the given point.
|
Example
This code complements the time graph with a dial:
! This should complement the example for svgaddarrow forall(i in 1..12) svgaddtext(4.8*cos(1.57-6.28*i/12), 5*sin(1.57-6.28*i/12), text(i))
Further information
1. By default the specified point denotes the lower left corner of the text display area; the vertical alignment can be changed via the style option
SVG_ANCHOR (values 'start', 'middle', or 'end').
2. If no group ID is specified, the text is added to the last group that has been created.
Related topics