@@ -2873,10 +2873,9 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2873
2873
2874
2874
stem([locs,] heads, linefmt=None, markerfmt=None, basefmt=None)
2875
2875
2876
- The *locs*-positions are optional. The formats may be provided either
2877
- as positional or as keyword-arguments.
2878
- Passing *markerfmt* and *basefmt* positionally is deprecated since
2879
- Matplotlib 3.5.
2876
+ The *locs*-positions are optional. *linefmt* can be provided as
2877
+ positional, but all other formats must be provided as
2878
+ keyword-arguments.
2880
2879
2881
2880
Parameters
2882
2881
----------
@@ -2949,8 +2948,8 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2949
2948
`stem <https://www.mathworks.com/help/matlab/ref/stem.html>`_
2950
2949
which inspired this method.
2951
2950
"""
2952
- if not 1 <= len (args ) <= 5 :
2953
- raise TypeError ('stem expected between 1 and 5 positional '
2951
+ if not 1 <= len (args ) <= 3 :
2952
+ raise TypeError ('stem expected between 1 or 3 positional '
2954
2953
'arguments, got {}' .format (args ))
2955
2954
_api .check_in_list (['horizontal' , 'vertical' ], orientation = orientation )
2956
2955
@@ -2963,12 +2962,6 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2963
2962
locs = np .arange (len (heads ))
2964
2963
else :
2965
2964
locs , heads , * args = args
2966
- if len (args ) > 1 :
2967
- _api .warn_deprecated (
2968
- "3.5" ,
2969
- message = "Passing the markerfmt parameter positionally is "
2970
- "deprecated since Matplotlib %(since)s; the "
2971
- "parameter will become keyword-only %(removal)s." )
2972
2965
2973
2966
if orientation == 'vertical' :
2974
2967
locs , heads = self ._process_unit_info ([("x" , locs ), ("y" , heads )])
@@ -2982,8 +2975,8 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2982
2975
2983
2976
# resolve marker format
2984
2977
if markerfmt is None :
2985
- # if not given as kwarg, check for positional or fall back to 'o'
2986
- markerfmt = args [ 1 ] if len ( args ) > 1 else "o"
2978
+ # if not given as kwarg, fall back to 'o'
2979
+ markerfmt = "o"
2987
2980
if markerfmt == '' :
2988
2981
markerfmt = ' ' # = empty line style; '' would resolve rcParams
2989
2982
markerstyle , markermarker , markercolor = \
@@ -2997,8 +2990,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
2997
2990
2998
2991
# resolve baseline format
2999
2992
if basefmt is None :
3000
- basefmt = (args [2 ] if len (args ) > 2 else
3001
- "C2-" if mpl .rcParams ["_internal.classic_mode" ] else
2993
+ basefmt = ("C2-" if mpl .rcParams ["_internal.classic_mode" ] else
3002
2994
"C3-" )
3003
2995
basestyle , basemarker , basecolor = _process_plot_format (basefmt )
3004
2996
@@ -5399,12 +5391,11 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5399
5391
# Once this deprecation elapses, also move vmin, vmax right after norm, to
5400
5392
# match the signature of other methods returning ScalarMappables and keep
5401
5393
# the documentation for *norm*, *vmax* and *vmin* together.
5402
- @_api .make_keyword_only ("3.5" , "aspect" )
5403
5394
@_preprocess_data ()
5404
5395
@_docstring .interpd
5405
- def imshow (self , X , cmap = None , norm = None , aspect = None ,
5396
+ def imshow (self , X , cmap = None , norm = None , * , aspect = None ,
5406
5397
interpolation = None , alpha = None ,
5407
- vmin = None , vmax = None , origin = None , extent = None , * ,
5398
+ vmin = None , vmax = None , origin = None , extent = None ,
5408
5399
interpolation_stage = None , filternorm = True , filterrad = 4.0 ,
5409
5400
resample = None , url = None , ** kwargs ):
5410
5401
"""
0 commit comments