Skip to main content

ContourNameList

ContourNameList (graphNameStr, separatorStr )

The ContourNameList function returns a string containing a list of contour names in the graph window or subwindow identified by graphNameStr.

Parameters

graphNameStr can be "" to refer to the top graph.

When identifying a subwindow with graphNameStr, see Subwindow Syntax for details on forming the window hierarchy.

The parameter separatorStr should contain a single ASCII character such as "," or ";" to separate the names.

An contour name is defined as the name of the 2D wave containing the data from which a contour plot is calculated, with an optional #n suffix that distinguishes between two or more contour plots in the same graph window that have the same wave name. Since the contour name has to be parsed, it is quoted if necessary.

Examples

The following command lines create a very unlikely contour display. If you did this, you would most likely want to put each contour plot on different axes, and arrange the axes such that they don't overlap. That would greatly complicate the example.

Make/O/N=(20,20) jack,'jack # 2';
Display;AppendMatrixContour jack
AppendMatrixContour/T/R jack
AppendMatrixContour 'jack # 2'
AppendMatrixContour/T/R 'jack # 2'
Print ContourNameList("",";")

prints jack;jack#1;'jack # 2';'jack # 2'#1;

See Also

Another command related to contour plots and waves: ContourNameToWaveRef.

For a description of wave references: Wave Reference Functions.

For commands referencing other waves in a graph: TraceNameList, WaveRefIndexed, XWaveRefFromTrace, TraceNameToWaveRef, CsrWaveRef, CsrXWaveRef, ImageNameList, ImageNameToWaveRef.