CPlotView:Attach
The Attach method attaches the top-most Plot window to the script and creates a new CPlotView object for it.
CPlotView = CPlotView:Attach() |
On success, this method returns a new CPlotView object.
On failure, nil is returned.
Note: Since this method creates a new CPlotView object, the new constructor should not be called.
Suppose you want the script to add a new data set to a plot the top-most window. The following script attaches the top-most window (a Plot window) to the script and adds the class data buffer as a new series:
|
-- attach the top-most Plot window as a CPlotView |
|
-- plot the class data matrix with a caption |
CPlotView class, attach_plotview, CImageView:Attach
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.