imat_vtkplot/colorrange (+FEA)


Purpose

Set the colorbar range.

Syntax

hplot.colorrange(range)
hplot.colorrange('on')
hplot.colorrange([range][,'on'][,'off'])

Description

COLORRANGE controls the range of values on the color bar, as well as its visibility.

RANGE is a 1x2 numeric vector with the minimum value being the first member, and the maximum value being the second member. To let the plot determine the max or min value, set the corresponding value to Inf.

Passing in the string 'on' will enable the colorbar display, and passing in the string 'off' will turn off the colorbar display.

If no values are passed in, a GUI will be presented where the values can be entered, and the colorbar can be enabled if it isn't already.