SetDimLabel
SetDimLabel dimNumber,dimIndex,label,wavelist
The SetDimLabel operation sets the dimension label or dimension element label to the specified label.
Parameters
| dimNumber is one of the following: | ||
| 0: | Rows | |
| 1: | Columns | |
| 2: | Layers | |
| 3: | Chunks | |
If dimIndex is -1, it sets the label for the entire dimension. If dimIndex is >= 0, it sets the dimension label for that element of the dimension.
label is a name (e.g., time), not a string (e.g., "time").
label is limited to 255 bytes. If you use more than 31 bytes, your wave will require Igor Pro 8.00 or later.
Details
Dimension labels can contain up to 255 bytes and may contain spaces and other normally-illegal characters allowed in liberal names if you surround the name in single quotes or if you use the $ operator to convert a string expression to a name.
Dimension labels have the same characteristics as object names. See Object Names for a discussion of object names in general.
Prior to Igor Pro 9.00, Igor allowed you to create dimension labels containing illegal characters (double-quote, single-quote, colon, semicolon, and control characters). This is now flagged as an error. Existing experiments containing dimension labels with illegal names can still be loaded without error.
See Also
GetDimLabel, FindDimLabel, CopyDimLabels
Dimension Labels and Example: Wave Assignment and Indexing Using Labels for further usage details and examples.