Node:Labelling Paths, Next:, Previous:Drawing and Filling Paths, Up:Path Reference



Labelling

void label ([unsigned int i = 0, [string position_string = "top", [short text_short = 0, [bool dot = false, [Picture& picture = current_picture]]]]]) const function
void label (Picture& picture, [unsigned int i = 0, [string position_string = "top", [short text_short = 0, [bool dot = false]]]]) const function
Calls Point::label() on all of the Points on points. They are numbered consecutively starting with i. The other arguments are used for all of the Points, so it's not possible to specify different positions for the labels for different Points. dot will normally not be specified, unless a picture argument is used in the first version. dotlabel() calls label() with dot = true.

The second version is convenient for passing a Picture argument without having to specify all of the other arguments.

void dotlabel ([unsigned int i = 0, [string position_string = "top", [short text_short = 0, Picture& picture = current_picture]]]) const function
void dotlabel (Picture& picture, [unsigned int i = 0, [string position_string = "top", [short text_short = 0]]]) const function
Like label(), except that the Points are dotted.