Creates a window that displays data in a style that simulates a real-time, moving strip chart.
WgStripTool [, x [, y1 [, y2 [, y3 [, y4 [, y5 [, y6 [, y7 [, y8 [, y9 [, y10 ]]]]]]]]]]]
yn (optional) Up to ten vectors containing data in the y direction (vertical); each vector is displayed in a separate strip chart. The number of y variables specified determines the number of strip charts that are displayed. All y vectors should contain the same number of elements.
parent (optional) The widget or shell ID of the parent widget (long). If parent is not specified, WgStripTool runs on its own (i.e., in its own event loop).
Position A two-element vector specifying the x- and y-coordinates of the upper-left corner of the WgStripTool window (long integer). The elements of the vector are [x, y], where x (horizontal) and y (vertical) are specified in pixels. These coordinates are measured from the upper-left corner of the screen.
DSize A two-element vector specifying the width and height of the display area (long integer); the display area is divided equally between the strip charts for all specified y variables. If not specified, the default size of the display area is 512-by-512 pixels.
Title A string containing the title that appears in the header of the window. Default value is "Stripchart Tool".
Background Specifies the background color name.
Figure 2-163 The WgStripTool window lets you interactively view data in moving strip charts; up to ten strip charts can be simultaneously displayed by the WgStripTool window. You can adjust the display width in the strip charts to create the effect of zooming in and out. You can also adjust the rate and the manner with which the strip charts progress through the data.
Figure 2-164 The WgStripTool window lets you interactively view data in moving strip charts; up to ten strip charts can be simultaneously displayed by the WgStripTool window. You can adjust the display width in the strip charts to create the effect of zooming in and out. You can also adjust the rate and the manner with which the strip charts progress through the data.
Auto
Stop
to have WgStripTool stop whenever it reaches the beginning or the end of the data in the y variable(s). Select Continuous
to have WgStripTool move through the data in a non-stop manner, pausing only when you click the Stop
button. Select Step
to have the strip chart proceed only when you click on one of the arrow buttons.
X Display Width
. Click this button to display another dialog box containing text fields where you can type precise values for the minimum and maximum values you wish to have displayed along the x-axis.
Figure 2-165 Use this dialog box to precisely control the range of the x-axis in the WgStripTool window. This dialog box is displayed if you click the X Range button in the WgStripTool control area.
Figure 2-166 Use this dialog box to precisely control the range of the x-axis in the WgStripTool window. This dialog box is displayed if you click the X Range button in the WgStripTool control area.
parent
is defined, WgStripTool is created as a child of parent
; otherwise, WgStripTool runs on its own (i.e., in its own event loop).When you are finished interacting with the WgStripTool window, close it by clicking on the
Dismiss
button.
PRO Sample_wgstriptool, parent, tool_shell x = indgen(500) y1 = sin(x) y2 = cos(x) y3 = tan(x)
IF N_ELEMENTS(parent) NE 0 THEN BEGIN WgStripTool, x, y1, y2, y3, $ 0, 0, 0, 0, 0, 0, 0, parent, tool_shell
ENDIF ELSE BEGIN WgStripTool, x, y1, y2, y3
ENDELSE END