@@ -4981,27 +4981,23 @@ def _quiver_units(self, args, kw):
4981
4981
4982
4982
# args can by a combination if X, Y, U, V, C and all should be replaced
4983
4983
@_preprocess_data ()
4984
+ @docstring .dedent_interpd
4984
4985
def quiver (self , * args , ** kw ):
4986
+ """%(quiver_doc)s"""
4985
4987
# Make sure units are handled for x and y values
4986
4988
args = self ._quiver_units (args , kw )
4987
-
4988
4989
q = mquiver .Quiver (self , * args , ** kw )
4989
-
4990
4990
self .add_collection (q , autolim = True )
4991
4991
self ._request_autoscale_view ()
4992
4992
return q
4993
- quiver .__doc__ = mquiver .Quiver .quiver_doc
4994
4993
4995
4994
# args can be some combination of X, Y, U, V, C and all should be replaced
4996
4995
@_preprocess_data ()
4997
4996
@docstring .dedent_interpd
4998
4997
def barbs (self , * args , ** kw ):
4999
- """
5000
- %(barbs_doc)s
5001
- """
4998
+ """%(barbs_doc)s"""
5002
4999
# Make sure units are handled for x and y values
5003
5000
args = self ._quiver_units (args , kw )
5004
-
5005
5001
b = mquiver .Barbs (self , * args , ** kw )
5006
5002
self .add_collection (b , autolim = True )
5007
5003
self ._request_autoscale_view ()
@@ -6308,32 +6304,36 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6308
6304
return ret
6309
6305
6310
6306
@_preprocess_data ()
6307
+ @docstring .dedent_interpd
6311
6308
def contour (self , * args , ** kwargs ):
6312
- kwargs ['filled' ] = False
6313
- contours = mcontour .QuadContourSet (self , * args , ** kwargs )
6314
- self ._request_autoscale_view ()
6315
- return contours
6316
- contour .__doc__ = """
6309
+ """
6317
6310
Plot contour lines.
6318
6311
6319
6312
Call signature::
6320
6313
6321
6314
contour([X, Y,] Z, [levels], **kwargs)
6322
- """ + mcontour .QuadContourSet ._contour_doc
6323
-
6324
- @_preprocess_data ()
6325
- def contourf (self , * args , ** kwargs ):
6326
- kwargs ['filled' ] = True
6315
+ %(contour_doc)s
6316
+ """
6317
+ kwargs ['filled' ] = False
6327
6318
contours = mcontour .QuadContourSet (self , * args , ** kwargs )
6328
6319
self ._request_autoscale_view ()
6329
6320
return contours
6330
- contourf .__doc__ = """
6321
+
6322
+ @_preprocess_data ()
6323
+ @docstring .dedent_interpd
6324
+ def contourf (self , * args , ** kwargs ):
6325
+ """
6331
6326
Plot filled contours.
6332
6327
6333
6328
Call signature::
6334
6329
6335
6330
contourf([X, Y,] Z, [levels], **kwargs)
6336
- """ + mcontour .QuadContourSet ._contour_doc
6331
+ %(contour_doc)s
6332
+ """
6333
+ kwargs ['filled' ] = True
6334
+ contours = mcontour .QuadContourSet (self , * args , ** kwargs )
6335
+ self ._request_autoscale_view ()
6336
+ return contours
6337
6337
6338
6338
def clabel (self , CS , levels = None , ** kwargs ):
6339
6339
"""
0 commit comments