NCL Home > Documentation > Functions > Color routines, Graphics routines

ColorShadeLeGeContour

Shades contour regions given low and high values and two colors.
(Deprecated. Use gsn_contour_shade.)

Prototype

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"      ; These four libraries are automatically
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"       ; loaded from NCL V6.4.0 onward.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"   ; No need for user to explicitly load.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

	function ColorShadeLeGeContour (
		plot   [1] : graphic,  
		lowval     : float,    
		lowcolor   : string,   
		highval    : float,    
		highcolor  : string    
	)

	return_val [1] :  graphic

Arguments

plot

The plot to be modified.

lowval

Starting with the first contour less than or equal to lowval, all areas less than that first contour will be shaded with the color specified in lowcolor.

lowcolor

The color used to shade the given areas specified by lowval.

highval

Starting with the first contour greater than or equal to highval, all areas greater than that first contour will be shaded with the color specified in highcolor.

highcolor

The color used to shade the given areas specified by highval.

Return value

plot is returned with the modifications described above.

Description

Starting with the first contour less than or equal to lowval, all areas less than that first contour will be color shaded with the color specified in lowcolor. Starting with the first contour greater than or equal to highval, all areas greater than that first contour will be color shaded with the color specified in highcolor.

Note: The color shading begins at the first contour greater than or equal to highval, and not at the specified highval. The shading also begins at the first contour level less than or equal to lowval, and not at the specified lowval. Check your plot to make sure that the results are what you expected.

See Also

gsn_contour_shade, ColorNegDashZeroPosContour, ShadeGeLeContour, ShadeGtContour, ShadeLtContour, ShadeLtGtContour

Examples

For an application example, see: