@@ -4966,43 +4966,39 @@ def arrow(self, x, y, dx, dy, **kwargs):
4966
4966
return a
4967
4967
4968
4968
@docstring .copy (mquiver .QuiverKey .__init__ )
4969
- def quiverkey (self , Q , X , Y , U , label , ** kw ):
4970
- qk = mquiver .QuiverKey (Q , X , Y , U , label , ** kw )
4969
+ def quiverkey (self , Q , X , Y , U , label , ** kwargs ):
4970
+ qk = mquiver .QuiverKey (Q , X , Y , U , label , ** kwargs )
4971
4971
self .add_artist (qk )
4972
4972
return qk
4973
4973
4974
4974
# Handle units for x and y, if they've been passed
4975
- def _quiver_units (self , args , kw ):
4975
+ def _quiver_units (self , args , kwargs ):
4976
4976
if len (args ) > 3 :
4977
4977
x , y = args [0 :2 ]
4978
- x , y = self ._process_unit_info ([("x" , x ), ("y" , y )], kw )
4978
+ x , y = self ._process_unit_info ([("x" , x ), ("y" , y )], kwargs )
4979
4979
return (x , y ) + args [2 :]
4980
4980
return args
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
- def quiver (self , * args , ** kw ):
4984
+ @docstring .dedent_interpd
4985
+ def quiver (self , * args , ** kwargs ):
4986
+ """%(quiver_doc)s"""
4985
4987
# Make sure units are handled for x and y values
4986
- args = self ._quiver_units (args , kw )
4987
-
4988
- q = mquiver .Quiver (self , * args , ** kw )
4989
-
4988
+ args = self ._quiver_units (args , kwargs )
4989
+ q = mquiver .Quiver (self , * args , ** kwargs )
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
- def barbs (self , * args , ** kw ):
4999
- """
5000
- %(barbs_doc)s
5001
- """
4997
+ def barbs (self , * args , ** kwargs ):
4998
+ """%(barbs_doc)s"""
5002
4999
# Make sure units are handled for x and y values
5003
- args = self ._quiver_units (args , kw )
5004
-
5005
- b = mquiver .Barbs (self , * args , ** kw )
5000
+ args = self ._quiver_units (args , kwargs )
5001
+ b = mquiver .Barbs (self , * args , ** kwargs )
5006
5002
self .add_collection (b , autolim = True )
5007
5003
self ._request_autoscale_view ()
5008
5004
return b
@@ -6300,32 +6296,36 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6300
6296
return ret
6301
6297
6302
6298
@_preprocess_data ()
6299
+ @docstring .dedent_interpd
6303
6300
def contour (self , * args , ** kwargs ):
6304
- kwargs ['filled' ] = False
6305
- contours = mcontour .QuadContourSet (self , * args , ** kwargs )
6306
- self ._request_autoscale_view ()
6307
- return contours
6308
- contour .__doc__ = """
6301
+ """
6309
6302
Plot contour lines.
6310
6303
6311
6304
Call signature::
6312
6305
6313
6306
contour([X, Y,] Z, [levels], **kwargs)
6314
- """ + mcontour .QuadContourSet ._contour_doc
6315
-
6316
- @_preprocess_data ()
6317
- def contourf (self , * args , ** kwargs ):
6318
- kwargs ['filled' ] = True
6307
+ %(contour_doc)s
6308
+ """
6309
+ kwargs ['filled' ] = False
6319
6310
contours = mcontour .QuadContourSet (self , * args , ** kwargs )
6320
6311
self ._request_autoscale_view ()
6321
6312
return contours
6322
- contourf .__doc__ = """
6313
+
6314
+ @_preprocess_data ()
6315
+ @docstring .dedent_interpd
6316
+ def contourf (self , * args , ** kwargs ):
6317
+ """
6323
6318
Plot filled contours.
6324
6319
6325
6320
Call signature::
6326
6321
6327
6322
contourf([X, Y,] Z, [levels], **kwargs)
6328
- """ + mcontour .QuadContourSet ._contour_doc
6323
+ %(contour_doc)s
6324
+ """
6325
+ kwargs ['filled' ] = True
6326
+ contours = mcontour .QuadContourSet (self , * args , ** kwargs )
6327
+ self ._request_autoscale_view ()
6328
+ return contours
6329
6329
6330
6330
def clabel (self , CS , levels = None , ** kwargs ):
6331
6331
"""
0 commit comments