10.4. autoInterval

class itom.autoInterval(min=- math.inf, max=math.inf, auto=True)

Creates a new (auto) interval object.

Properties and slots of uiItem objects (e.g. plots) sometimes have parameters of type autoInterval. It is either possible to pass an autoInterval instance, the string auto or a list or tuple with the two limit values [min, max].

Example:

[i,h] = plot(dataObject.randN([100, 100], 'int8'))
h['xAxisInterval'] = autoInterval(20, 80)
h['yAxisInterval'] = 'auto' 
h['zAxisInterval'] = [-90, 90] 
Parameters
minfloat, optional

minimum value of interval (default: -math.inf).

maxfloat, optional

maximum value of interval (default: math.inf).

autobool, optional

False if interval is fixed, True if the interval can be scaled automatically (default).

name() str

Returns the name of this object.

Returns
str

name of this object autoInterval.

auto

bool : Gets or sets if this interval has an automatic range.

max

float : Gets or sets the maximum value of the interval.

min

float : Gets or sets the minimum value of the interval.