plots
textplot
plot containing text
Calling Sequence
Parameters
Description
Examples
Compatibility
textplot(L, options)
L
-
list or a set
options
optional arguments (see Description)
This command allows you to create a 2-D plot containing text. The input L is either a single text point or a list or set of text points. Here a single text point consists of three components with the last component being the text to be placed at the coordinates defined by the first components of the text point. For plotting text in three dimensions see plots[textplot3d].
The third component of the text point can be a string that gets displayed as plain text without the quotation marks or a mathematical expression that is typeset. For more information on how to specify this component, see plot/typesetting.
The default alignment is centered in both right and left along with top and bottom. One can reset the desired alignment for the text via the option align = t, where t is either one of below, right, above, left or a list or set of these alignment specifications.
The text can be rotated with the option rotation = r where r must evaluate to a real number that is assumed to be in radians or be one of the names horizontal (equivalent to 0 radians) or vertical (equivalent to Pi radians).
The rest of the options to textplot are the same as the options to plot. See plot/options.
The align, color, font and rotation options may be included within a text point list, in which case they apply only to that particular point.
Note: When applying a command that alters the plot structure to a plot containing text, only the position of the text is transformed, not the actual characters.
with⁡plots:
textplot⁡1,2,zebra,align=above,right
textplot⁡1,2,zebra,3,2,oryx,view=0..4,1..3
textplot⁡2,3,zebra,2,1,oryx,color=Blue,view=1..3,0..4
textplot⁡2,3,zebra,rotation=π4,font=times,roman,20,2,1,oryx,view=1..3,0..4
The following commands were used to create the plot from the Plotting Guide.
p≔plot⁡sin⁡x,x=−π..π:
t1≔textplot⁡π2,1,typeset⁡Local Maxima ,π2,1,align=above:
t2≔textplot⁡−π2,−1,typeset⁡Local Minima ,−π2,−1,align=below:
display⁡p,t1,t2,view=−π..π,−1.5..1.5
The plots[textplot] command was updated in Maple 2018.
The rotation option was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
plot
plot/typesetting
plots[textplot3d]
Download Help Document