@@ -2881,10 +2881,9 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2881
2881
2882
2882
stem([locs,] heads, linefmt=None, markerfmt=None, basefmt=None)
2883
2883
2884
- The *locs*-positions are optional. The formats may be provided either
2885
- as positional or as keyword-arguments.
2886
- Passing *markerfmt* and *basefmt* positionally is deprecated since
2887
- Matplotlib 3.5.
2884
+ The *locs*-positions are optional. *linefmt* may be provided as
2885
+ positional, but all other formats must be provided as
2886
+ keyword-arguments.
2888
2887
2889
2888
Parameters
2890
2889
----------
@@ -2957,8 +2956,8 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2957
2956
`stem <https://www.mathworks.com/help/matlab/ref/stem.html>`_
2958
2957
which inspired this method.
2959
2958
"""
2960
- if not 1 <= len (args ) <= 5 :
2961
- raise TypeError ('stem expected between 1 and 5 positional '
2959
+ if not 1 <= len (args ) <= 3 :
2960
+ raise TypeError ('stem expected between 1 or 3 positional '
2962
2961
'arguments, got {}' .format (args ))
2963
2962
_api .check_in_list (['horizontal' , 'vertical' ], orientation = orientation )
2964
2963
@@ -2971,12 +2970,6 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2971
2970
locs = np .arange (len (heads ))
2972
2971
else :
2973
2972
locs , heads , * args = args
2974
- if len (args ) > 1 :
2975
- _api .warn_deprecated (
2976
- "3.5" ,
2977
- message = "Passing the markerfmt parameter positionally is "
2978
- "deprecated since Matplotlib %(since)s; the "
2979
- "parameter will become keyword-only %(removal)s." )
2980
2973
2981
2974
if orientation == 'vertical' :
2982
2975
locs , heads = self ._process_unit_info ([("x" , locs ), ("y" , heads )])
@@ -2990,8 +2983,8 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2990
2983
2991
2984
# resolve marker format
2992
2985
if markerfmt is None :
2993
- # if not given as kwarg, check for positional or fall back to 'o'
2994
- markerfmt = args [ 1 ] if len ( args ) > 1 else "o"
2986
+ # if not given as kwarg, fall back to 'o'
2987
+ markerfmt = "o"
2995
2988
if markerfmt == '' :
2996
2989
markerfmt = ' ' # = empty line style; '' would resolve rcParams
2997
2990
markerstyle , markermarker , markercolor = \
@@ -3005,8 +2998,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
3005
2998
3006
2999
# resolve baseline format
3007
3000
if basefmt is None :
3008
- basefmt = (args [2 ] if len (args ) > 2 else
3009
- "C2-" if mpl .rcParams ["_internal.classic_mode" ] else
3001
+ basefmt = ("C2-" if mpl .rcParams ["_internal.classic_mode" ] else
3010
3002
"C3-" )
3011
3003
basestyle , basemarker , basecolor = _process_plot_format (basefmt )
3012
3004
@@ -5428,15 +5420,11 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5428
5420
5429
5421
#### plotting z(x, y): imshow, pcolor and relatives, contour
5430
5422
5431
- # Once this deprecation elapses, also move vmin, vmax right after norm, to
5432
- # match the signature of other methods returning ScalarMappables and keep
5433
- # the documentation for *norm*, *vmax* and *vmin* together.
5434
- @_api .make_keyword_only ("3.5" , "aspect" )
5435
5423
@_preprocess_data ()
5436
5424
@_docstring .interpd
5437
- def imshow (self , X , cmap = None , norm = None , aspect = None ,
5425
+ def imshow (self , X , cmap = None , norm = None , * , aspect = None ,
5438
5426
interpolation = None , alpha = None ,
5439
- vmin = None , vmax = None , origin = None , extent = None , * ,
5427
+ vmin = None , vmax = None , origin = None , extent = None ,
5440
5428
interpolation_stage = None , filternorm = True , filterrad = 4.0 ,
5441
5429
resample = None , url = None , ** kwargs ):
5442
5430
"""
0 commit comments