Adding text to graphs

The textplot3d() command produces dynagraph graphics containing text. It can be used in conjunction with other plotting commands to add labels or other textual information to graphs.

The textplot3d() command

    textplot3d([x, y, z, string], options);

       x, y, z : coordinates of the lower left corner of the text
       string : text to be inserted

Numerous optional arguments can modify the default appearance of the displayed graphs. These are described in Plotting Options.

Remark 1: The string argument is a dynagraph string and must be quoted if necessary. See the section Quoted Strings for details.

Remark 2: textplot() is provided as a synonym to textplot3d().

Remark 3: Multiple text strings can be added to the scene with one textplot() command by enclosing their definitions in braces; see examples below.

Examples:

    textplot3d( { [1,1,1,"test 1"], [2,2,2,"test 2"], [3,3,3,"test 3"] },
        axes=boxed); 
    p1 := textplot3d([1,1,1,"test 1"], color=red):
    p2 := textplot3d([2,2,2,"test 2"], color=green):
    display({p1, p2}, axes=boxed, font=[courier, bold, 24]);

Remark 4: Maple's textplot3d() command provides for various ALIGN options to align the text with respect to its defining coordinates. Dynagraph currently does not implement the ALIGN option.

Back to table of contents