CPlotView:GetAttrib CPlotView:SetNegX

CPlotView:SetAttrib


The SetAttrib method sets the axis properties (min, max, labels, etc.) of a CPlotView object using values in a PlotAttrib table. Before using this method to set new values, fill the attributes table using GetAttrib.

Example

The following script sets the x-axis limits for the plot box of a CPlotView window:

V = attachlist_plotview()

-- select the target plot window

if V == nil then Exit("bad CPlotView") end

-- if not successful, exit the script

tbl = V:GetAttrib()

-- fill the attribute table with current values

if tbl == nil then Exit("bad table") end

 

tbl.nMinX = 100

-- new x axis minimum value

tbl.nMaxX = 500

-- new x axis maximum value

V:SetAttrib(tbl)

-- set new X axis range using the attributes

Related Topics

CPlotView class

GetAttrib

PlotAttrib table

 


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