9.4. autoInterval¶
-
class
itom.
autoInterval
([min=-inf, max=inf, auto=true]) → creates a new auto interval object.¶ Parameters: min : {float}
minimum value of interval (default: -infinity)
max : {float},
maximum value of interval (default: +infinity)
auto : {bool}
false if interval is fixed, true if the interval can be scaled automatically (default)
Properties and slots of uiItems (e.g. plots) sometimes have parameters of type ‘autoInterval’. It is either :
possible to pass then an ‘autoInterval’ instance, the string ‘auto’ or a list or tuple with the two values [min, max] :
Example:: :
[i,h] = plot(dataObject.randN([100,100], ‘int8’)) h[‘xAxisInterval’] = autoInterval(20, 80) h[‘yAxisInterval’] = ‘auto’ h[‘zAxisInterval’] = [-90,90]
-
name
()¶
-
auto
¶
-
max
¶
-
min
¶
-