gtext

Purpose

Mouse placement of text on a graph.

Synopsis

gtext('string')

Description

gtext('string') waits for a mouse button or keyboard key to be pressed while the mouse pointer is within the graph window. Pressing a mouse button or any key writes the text string onto the graph at the selected location.

Examples

Label an interesting portion of the current plot with

gtext('Note this peak!')

Algorithm

gtext uses the functions ginput and text.

See Also

ginput, text

(c) Copyright 1994 by The MathWorks, Inc.