Skip to main content

Label

Label [/W=winName /Z] axisName, labelStr

The Label operation labels the named axis with labelStr.

Parameters

axisName is the name of an existing axis in the top graph. It is usually one of "left", "right", "top", or "bottom", though it may also be the name of a free axis such as "VertCrossing".

labelStr contains the text that labels the axis.

Flags

/W=winNameAdds axis label in the named graph window or subwindow. When omitted, action will affect the active window or subwindow. This must be the first flag specified when used in a Proc or Macro or on the command line.
When identifying a subwindow with winName, see Subwindow Syntax for details on forming the window hierarchy.
/ZNo errors generated if the named axis doesn't exist. Used for style macros.

Details

labelStr can contain escape codes which affect subsequent characters in the text. An escape code is introduced by a backslash character. In a literal string, you must enter two backslashes to produce one. See Backslashes in Annotation Escape Sequences for details.

Using escape codes you can change the font, size, style and color of text, create superscripts and subscripts, create dynamically-updated text, insert legend symbols, and apply other effects. See Annotation Escape Codes for details.

Some escape codes insert text based on axis properties. See Axis Label Escape Codes for details.

The characters "" in an axis label indicate that you specified an invalid escape code or used a font that is not available.

See Also

Axis Labels, Escape Sequences in Strings, Annotation Escape Codes, Legendions[Legend] about wave symbols.

Trace Names, Programming With Trace Names