Skip to content

Commit 9044761

Browse files
committed
Make most arguments to Image classes keyword only
1 parent 1a907a6 commit 9044761

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/matplotlib/image.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ class AxesImage(_ImageBase):
901901
**kwargs : `.Artist` properties
902902
"""
903903

904-
@_api.make_keyword_only("3.6", name="cmap")
905904
def __init__(self, ax,
905+
*,
906906
cmap=None,
907907
norm=None,
908908
interpolation=None,
@@ -911,7 +911,6 @@ def __init__(self, ax,
911911
filternorm=True,
912912
filterrad=4.0,
913913
resample=False,
914-
*,
915914
interpolation_stage=None,
916915
**kwargs
917916
):
@@ -1208,11 +1207,11 @@ class PcolorImage(AxesImage):
12081207
and it is used by pcolorfast for the corresponding grid type.
12091208
"""
12101209

1211-
@_api.make_keyword_only("3.6", name="cmap")
12121210
def __init__(self, ax,
12131211
x=None,
12141212
y=None,
12151213
A=None,
1214+
*,
12161215
cmap=None,
12171216
norm=None,
12181217
**kwargs
@@ -1360,8 +1359,8 @@ class FigureImage(_ImageBase):
13601359

13611360
_interpolation = 'nearest'
13621361

1363-
@_api.make_keyword_only("3.6", name="cmap")
13641362
def __init__(self, fig,
1363+
*,
13651364
cmap=None,
13661365
norm=None,
13671366
offsetx=0,
@@ -1419,8 +1418,8 @@ def set_data(self, A):
14191418
class BboxImage(_ImageBase):
14201419
"""The Image class whose size is determined by the given bbox."""
14211420

1422-
@_api.make_keyword_only("3.6", name="cmap")
14231421
def __init__(self, bbox,
1422+
*,
14241423
cmap=None,
14251424
norm=None,
14261425
interpolation=None,

0 commit comments

Comments
 (0)