NCL Website header
NCL Home > Documentation > Graphics

Fill Patterns

There are 18 predefined fill patterns available. (Pattern 0 is solid, pattern 17 is stipple.)

You can change the fill style by using gsFillIndex for fills associated with polygons or gsn_add_polygon, gsn_polygon, gsn_polygon_ndc.

For contour plots, use cnFillPattern or cnFillPatterns.

The fill pattern is changed using an integer from 0 to 17. The default is index 0 (solid fill).

Application Examples

Code Snippets

res                    = True
res@gsFillIndex        = 4    
res@cnFillPattern      = 4    
res@cnFillPatterns     = (/2,5,12/) 
setvalues obj
   "gsFillIndex"       :  4
   "cnFillPattern"     :  4
   "cnFillPatterns"    :  (/2,5,12/)
end setvalues