The LIVE_CONTROL procedure allows you to set the properties of (or elements within) a visualization in a LIVE tool from the IDL command line. See LIVE_Tools for additional discussion of the routines that control the LIVE_ tools.

Calling Sequence




If keywords DIALOG and/or PROPERTIES are used, Name is a string (case-insensitive) containing the name of a window visualization or graphic to operate on. WINDOW_IN will default to the window or buffer, if only one is present in the IDL session.

If keyword UPDATE_DATA is used, Name must be an IDL variable with the same name as one already used in the given window or buffer (WINDOW_IN). In this case there is no default. If UPDATE_DATA is not set, the parameter must be a name of a window, visualization or visualization element.



Set this keyword to have the editable properties dialog of the visualization or graphic appear.


Set this keyword to a named variable to contain the returned error message (string). An empty string is returned if no errors occurred during the operation. By default, errors are reported via a GUI.


Set this keyword to inhibit the visualization window from drawing. This is useful if multiple visualizations and/or annotations are being created via calls to other LIVE_Tools in order to reduce unwanted draws and help speed the display.


Set this keyword to a properties structure with which to modify the given visualization or graphic. The structure should contain one or more tags as returned from a LIVE_INFO call on the same type of item.


Set this keyword to force the window to update all of its visualizations that contain the given data passed in the parameter to LIVE_CONTROL.


Set this keyword equal to a name (string, case-sensitive) of a LIVE tool or Insight window, or a LIVE tool buffer. The WINDOW tag of the REFERENCE_OUT structure from the creation of the LIVE tool will provide the window or buffer name. Window names are also visible in visualization window titlebars. If only one LIVE tool or Insight window (or buffer) is present in the IDL session, this keyword will default to it.


X=indgen(10) ; Create a dataset to display.

LIVE_PLOT, X ; Plot it.

X=X+2 ; Modify the dataset.

LIVE_CONTROL, X, /UPDATE_DATA ; Replace old values of X.

See Also