File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change 1- # Bit and Hachure Patterns  
1+ # 90 Predefined  Bit and Hachure Patterns 
22
33PyGMT supports a variety of bit and hachure patterns that can be used to fill polygons.
4- 
5- These patterns can be defined using the following syntax:
6- 
7- ** P** |** p** _ pattern_ [ ** +b** _ color_ ] [ **+f**_color_ ] [ ** +r** _ dpi_ ] 
8- 
9- * pattern*  can either be a number in the range 1-90 or the name of a 1-, 8-, or 24-bit
10- image raster file. The former will result in one of the 90 predefined 64x64 bit-patterns
11- provided by GMT (see the figure below). The latter allows the user to create customized,
12- repeating images using image raster files.
13- 
14- By specifying uppercase ** P**  instead of ** p**  the image will be bit-reversed, i.e.,
15- white and black areas will be interchanged (only applies to 1-bit images or predefined
16- bit-image patterns). For these patterns and other 1-bit images one may specify
17- alternative ** b** ackground and ** f** oreground colors (by appending ** +b** _ color_  and/or
18- ** +f** _ color_ ) that will replace the default white and black pixels, respectively.
19- Excluding * color*  from a fore- or background specification yields a transparent image
20- where only the back- or foreground pixels will be painted. The ** +r** _ dpi_  modifier sets
21- the resolution in dpi.
4+ These patterns can be specified via the {class}` pygmt.params.Pattern `  class.
225
236The image below shows the 90 predefined bit patterns that can be used in PyGMT.
247
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments