NewFreeAxis
NewFreeAxis [/L/R/B/T/O/W=winName ] axisName
The NewFreeAxis operation creates a new free axis with no controlling wave.
Parameters
axisName is the name for the new free axis.
Flags
| /L/R/B/T | Specifies whether to attach the free axis to the Left, Right, Bottom, or Top plot edge, respectively. The Left edge is used by default. | |
| /O | Replaces axisName if it already exists, which means any existing axis is marked as truly free. | |
| /W=winName | Draws in the named graph window. winName may also be the name of a subwindow. winName must not conflict with other axis names except when using the /O flag. If /W is omitted, it creates a new axis in the active graph window or subwindow. | |
Details
A truly free axis does not use any scaling or units information from any associated waves (which need not exist.) You can set the properties of a free axis using SetAxis or ModifyFreeAxis.
Example
Make jack=x
Display jack
NewFreeAxis fred
ModifyFreeAxis fred, master=left, hook=axhook
Copy this function to your Procedure window and compile before executing the code above:
Function axhook(s)
STRUCT WMAxisHookStruct &s
Variable t= s.max
s.max= s.min
s.min= t
return 0
End