@@ -21,7 +21,7 @@ class Pattern(BaseParam):
2121 24-bit image raster files to fill symbols and polygons in various PyGMT plotting
2222 methods. The patterns can be customized with different resolution and different
2323 foreground and background colors. The foreground and background colors can also be
24- reversed .
24+ inverted .
2525
2626 GMT provides 90 predefined patterns that can be used in PyGMT. The patterns are
2727 numbered from 1 to 90, and shown below:
@@ -47,8 +47,8 @@ class Pattern(BaseParam):
4747 [Default is white for background and black for foreground]. Setting either to
4848 an empty string will yield a transparent background/foreground where only the
4949 foreground or background pixels will be painted.
50- reversed
51- If ``True``, the pattern will be bit-reversed , i.e., white and black areas will
50+ invert
51+ If ``True``, the pattern will be bit-inverted , i.e., white and black areas will
5252 be interchanged (only applies to predefined bit-patterns or 1-bit images).
5353
5454 Examples
@@ -73,7 +73,7 @@ class Pattern(BaseParam):
7373 dpi : int | None = None
7474 bgcolor : str | None = None
7575 fgcolor : str | None = None
76- reversed : bool = False
76+ invert : bool = False
7777
7878 def _validate (self ):
7979 """
@@ -104,7 +104,7 @@ def _aliases(self):
104104 Aliases for the Pattern class.
105105 """
106106 return [
107- Alias (self .pattern , name = "pattern" , prefix = "P" if self .reversed else "p" ),
107+ Alias (self .pattern , name = "pattern" , prefix = "P" if self .invert else "p" ),
108108 Alias (self .bgcolor , name = "bgcolor" , prefix = "+b" ),
109109 Alias (self .fgcolor , name = "fgcolor" , prefix = "+f" ),
110110 Alias (self .dpi , name = "dpi" , prefix = "+r" ),
0 commit comments