attachlist_plotview
The attachlist_plotview method is a non-class function that creates a new CPlotView object attached to a plot window on the Mira desktop. The script can then collect data from the plot window and change its contents. This function requires the user to select the target window from a list of all plot windows on the desktop. This function does not use an existing CPlotView object. Also see the equivalent CPlotView:AttachFromList class method.
The related Attach method attaches the top-most plot window.
CPlotView_obj = attachlist_plotview() |
On success, a new CPlotView class object is returned.
On failure, nil is returned. This usually means no plot window is shown on the Mira desktop.
This function collects all plot windows on the Mira desktop into a list, then displays them in a window where the target plot window is selected. The selected plot window is returned as a new CPlotView object.
Assume that several image windows are displayed on the Mira desktop along with other windows. The following script attaches one of the image windows to the script:
|
-- select the target plot window |
|
-- if not successful, exit the script |
|
-- print the title of the attached window |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.