Fill Patterns
There are 17 predefined fill patterns available. Click on any of the 3 thumbnails to see a bigger view:
| patterns 1-8 | patterns 9-16 | pattern 17 (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