CPlot:delete CPlot:FindNearest

CPlot:Count


The Count method returns the number of points in the plot series managed by the CPlot object.

Syntax

number = CPlot:Count()

bullet.gif    number is the number of points in the plot series.

bullet.gif    On failure, 0 is returned.

Example

The following script gets a CPlot object for series 1 in a CPlotView on the Mira desktop:

V = attachlist_plotview()

-- select the target plot window

if V == nil then Exit() end

-- if not successful, exit the script

P = V:GetPlot(1)

-- get a CPlot object for series 1

if P == nil then Exit("Bad series") end

 

nCount = P:Count()

-- number of points in the plot series

Related Topics

CPlotView class, CPlot class


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