CPlotView:GetPtX CPlotView:SetAttrib

CPlotView:GetAttrib


The GetAttrib method returns a PlotAttrib table containing the axis properties of the plot window attached to a CPlotView object. This method is often paired with the SetAttrib method to change the axis properties of the plot window.

Example

The following script returns a filled PlotAttrib table for a CPlotView object and lists the minimum X value for the plot box:

V = attachlist_plotview()

-- select the target plot window

if V == nil then Exit() end

-- if not successful, exit the script

tbl = V:GetAttrib()

-- get the attributes table

if tbl == nil then Exit("attributes failed") end

 

Printf("X at left end = %lg\n", tbl.nMinX)

-- X at left end of the plot box

Related Topics

CPlotView class

SetAttrib

PlotAttrib table

 


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