attach_plotview


The attach_plotview function is a non-class version of the CPlotView:Attach method which attaches a plot from the top-most plot window and creates a CPlotView object for it. The attachlist_plotview function attaches a CPloView after selecting it froma list of windows.

Syntax

CPlotView_obj = attach_plotview()

bullet.gif    On success, this method returns a new CPlotView object CPlotView_obj.

bullet.gif    On failure, nil is returned.

Note: Since this method creates a new CPlotView object, the new constructor should not be called.

Example

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:

V = attach_plotview()

-- attach the top-most Plot window as a CPlotView

V:AddSeries( "New Data" )

-- plot the class data matrix with a caption

Related Topics

CPlotView class

Attach

new_plotview

attachlist_plotview


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.