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 Ngl.add_polygon, Ngl.polygon, Ngl.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 = Ngl.Resources() res.gsFillIndex = 4 res.cnFillPattern = 4 res.cnFillPatterns = [2,5,12]