SetDataLimits

SetDataLimits sets the data limits for the minimum and maximum color in a color spectrum.

Syntax

object.SetDataLimits( DataMin, DataMax )

Parameter

Type

Required/

Optional

Default

Description

DataMin

Double

Required

This provides the minimum data value.

DataMax

Double

Required

This provides the maximum data value.

Remarks

DataMax must be greater than DataMin.

Version Added: Surfer 7.01

Example

This example shows how to set the data limits in a color spectrum to a minimum of -50 and a maximum of 200, using demogrid.grd as an example.

ColorMap.SetDataLimits(-50, 200)

Used by: ColorMap Object