@@ -3288,14 +3288,11 @@ def get_tightbbox(self, renderer, call_axes_locator=True,
32883288 batch .append (axis_bb )
32893289 return mtransforms .Bbox .union (batch )
32903290
3291- def stem (self , * args , ** kwargs ):
3291+ def stem (self , x , y , z , * , linefmt = 'b-' , markerfmt = 'bo' , basefmt = 'r-' ,
3292+ bottom = 0 , label = None , zdir = 'z' ):
32923293 """
32933294 Create a 3D stem plot.
32943295
3295- Call signatures::
3296- stem3(x, y, z, linefmt='b-', markerfmt='bo', basefmt='r-',
3297- zdir={'x'|'y'|'z'|'-x'|'-y'})
3298-
32993296 By default, stem plots vertical lines (using *linefmt*) in the z
33003297 direction at each *x* and *y* location from the baseline to *z*, and
33013298 places a marker there using *markerfmt*. By default, the baseline at
@@ -3322,34 +3319,6 @@ def stem(self, *args, **kwargs):
33223319
33233320 had_data = self .has_data ()
33243321
3325- # Extract the required values
3326- x , y , z = [np .asarray (i ) for i in args [:3 ]]
3327- args = args [3 :]
3328-
3329- # Popping some defaults
3330- try :
3331- linefmt = kwargs .pop ('linefmt' , args [0 ])
3332- except IndexError :
3333- linefmt = kwargs .pop ('linefmt' , 'b-' )
3334- try :
3335- markerfmt = kwargs .pop ('markerfmt' , args [1 ])
3336- except IndexError :
3337- markerfmt = kwargs .pop ('markerfmt' , 'bo' )
3338- try :
3339- basefmt = kwargs .pop ('basefmt' , args [2 ])
3340- except IndexError :
3341- basefmt = kwargs .pop ('basefmt' , 'r-' )
3342- try :
3343- zdir = kwargs .pop ('zdir' , args [3 ])
3344- except IndexError :
3345- zdir = kwargs .pop ('zdir' , 'z' )
3346-
3347- bottom = kwargs .pop ('bottom' , None )
3348- label = kwargs .pop ('label' , None )
3349-
3350- if bottom is None :
3351- bottom = 0
3352-
33533322 stemlines = []
33543323 jx , jy , jz = art3d .juggle_axes (x , y , z , zdir )
33553324
0 commit comments