11"""
22Base class with plot generating commands.
3+
34Does not define any special non-GMT methods (savefig, show, etc).
45"""
56import contextlib
@@ -50,7 +51,6 @@ def _preprocess(self, **kwargs): # pylint: disable=no-self-use
5051 >>> base = BasePlotting()
5152 >>> base._preprocess(resolution="low")
5253 {'resolution': 'low'}
53-
5454 """
5555 return kwargs
5656
@@ -76,7 +76,7 @@ def _preprocess(self, **kwargs): # pylint: disable=no-self-use
7676 @kwargs_to_strings (R = "sequence" , p = "sequence" )
7777 def coast (self , ** kwargs ):
7878 """
79- Plot continents, shorelines, rivers, and borders on maps
79+ Plot continents, shorelines, rivers, and borders on maps.
8080
8181 Plots grayshaded, colored, or textured land-masses [or water-masses] on
8282 maps and [optionally] draws coastlines, rivers, and political
@@ -135,7 +135,6 @@ def coast(self, **kwargs):
135135 {XY}
136136 {p}
137137 {t}
138-
139138 """
140139 kwargs = self ._preprocess (** kwargs )
141140 with Session () as lib :
@@ -219,7 +218,6 @@ def colorbar(self, **kwargs):
219218 {XY}
220219 {p}
221220 {t}
222-
223221 """
224222 kwargs = self ._preprocess (** kwargs )
225223 with Session () as lib :
@@ -247,7 +245,7 @@ def colorbar(self, **kwargs):
247245 @kwargs_to_strings (R = "sequence" , L = "sequence" , A = "sequence_plus" , p = "sequence" )
248246 def grdcontour (self , grid , ** kwargs ):
249247 """
250- Convert grids or images to contours and plot them on maps
248+ Convert grids or images to contours and plot them on maps.
251249
252250 Takes a grid file name or an xarray.DataArray object as input.
253251
@@ -458,7 +456,6 @@ def grdimage(self, grid, **kwargs):
458456 {p}
459457 {t}
460458 {x}
461-
462459 """
463460 kwargs = self ._preprocess (** kwargs )
464461 kind = data_kind (grid , None , None )
@@ -567,7 +564,6 @@ def grdview(self, grid, **kwargs):
567564 {XY}
568565 {p}
569566 {t}
570-
571567 """
572568 kwargs = self ._preprocess (** kwargs )
573569 kind = data_kind (grid , None , None )
@@ -797,7 +793,6 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
797793 {XY}
798794 {p}
799795 {t}
800-
801796 """
802797 kwargs = self ._preprocess (** kwargs )
803798
@@ -867,7 +862,6 @@ def basemap(self, **kwargs):
867862 {XY}
868863 {p}
869864 {t}
870-
871865 """
872866 kwargs = self ._preprocess (** kwargs )
873867 if not ("B" in kwargs or "L" in kwargs or "T" in kwargs ):
@@ -915,7 +909,6 @@ def logo(self, **kwargs):
915909 {XY}
916910 {p}
917911 {t}
918-
919912 """
920913 kwargs = self ._preprocess (** kwargs )
921914 if "D" not in kwargs :
@@ -1342,8 +1335,8 @@ def set_pointer(data_pointers, spec):
13421335
13431336 def update_pointers (data_pointers ):
13441337 """Updates variables based on the location of data, as the
1345- following data can be passed as parameters or it can be
1346- contained in `spec`."""
1338+ following data can be passed as parameters or it can be contained
1339+ in `spec`."""
13471340 # update all pointers
13481341 longitude = data_pointers ["longitude" ]
13491342 latitude = data_pointers ["latitude" ]
0 commit comments