awvZoomGraphXY
awvZoomGraphXY(
w_windowID
l_xMinMax
l_yMinMax
[ ?stripNumber x_stripNumber ]
[ ?subwindow x_subwindow ]
)
=> t / nil
Description
Zooms in or zooms out the graph according to the specified y-axis (dependent axis) coordinates.
Arguments
|
w_windowID
|
Waveform window ID.
|
|
l_xMinMax
|
A list of two x-axis coordinates for performing zoom in or zoom out operation. The first value in the list is the minimum and the second is the maximum.
The following notations are supported:
50n:220n
list(50n 220n)
list("50ns" "220ns")
5e-8:2.2e-7
list(5e-8 2.2e-7)
|
|
l_yMinMax
|
A list of two y-axis coordinates for performing zoom in or zoom out operation. The first value in the list is the minimum value and the second value is the maximum value.
The following notations are supported:
750m:900m
list(750m 900m)
list("750mv" "900mv")
7.5e-1:9e-1
list(7.5e-1 9e-1)
|
|
?stripNumber x_stripNumber
|
|
|
Strip number to identify the strip on which zoom operation is to be performed.
If you do not specify this argument, the currently selected strip is used.
If no strip is currently selected in the specified subwindow or the current subwindow, the default value 1 is used, which means that the zoom operation is performed on the trace with strip number 1.
|
|
?subwindow x_subwindow
|
|
|
Identification number of the subwindow, which is found in the top-right corner of the subwindow.
If you do not specify this argument, the current subwindow is used.
|
Value Returned
|
t
|
Zoom in or zoom out operation is successful.
|
|
nil
|
The specified Waveform window, subwindow, or the strip does not exist.
|
Examples
The following example returns a list of strip numbers of the traces plotted in the current subwindow of the current Waveform window:
awvGetStripNumbersList(awvGetCurrentWindow() ?subwindow awvGetCurrentSubwindow(awvGetCurrentWindow()))
=> (3 1 2)
The following example zooms in the x axis from x=50ns to x=100ns and the y axis from y=750mV to y=900mV of the trace with the strip number 2 in the current subwindow of the current Waveform window.
awvZoomGraphXY(awvGetCurrentWindow() list("50ns" "100ns") 7.5e-1:9e-1 ?stripNumber 2 ?subwindow awvGetCurrentSubwindow(awvGetCurrentWindow()))
=> t
Return to top