8.31 text

text '<text string>' [at <x>, <y>] [rotate <angle>]
     [with colour <colour>]

The text command is used to add blocks of text to a multiplot. An example would be:

text 'Hello World!' at 0,2

which would render the text ‘Hello World!’ at position $(0,2)$, measured in centimetres. The alignment of the text item with respect to this position can be set using the set texthalign and set textvalign commands.

A rotation angle may optionally be specified after the keyword rotate to produce text rotated to any arbitrary angle, measured in degrees counter-clockwise. The following example would produce upward-running text:

text 'Hello' at 1.5, 3.6 rotate 90

By default the text is black; however, an arbitrary colour may be specified using the with colour modifier. For example:

text 'A purple label' at 0, 0 with colour purple

would add a purple label at the origin of the multiplot.

Outside of multiplot mode, the text command can be used to produce images consisting simply of one single text item. This can be useful for importing LaTeXed equations as gif images into slideshow programs such as Microsoft Powerpoint which are incapable of producing such neat mathematical notation by themselves.