@@ -45,8 +45,7 @@ class Patch(artist.Artist):
45
45
# subclass-by-subclass basis.
46
46
_edge_default = False
47
47
48
- @_api .make_keyword_only ("3.6" , name = "edgecolor" )
49
- def __init__ (self ,
48
+ def __init__ (self , * ,
50
49
edgecolor = None ,
51
50
facecolor = None ,
52
51
color = None ,
@@ -687,9 +686,8 @@ def __str__(self):
687
686
return fmt % pars
688
687
689
688
@_docstring .dedent_interpd
690
- @_api .make_keyword_only ("3.6" , name = "angle" )
691
- def __init__ (self , xy , width , height , angle = 0.0 , * ,
692
- rotation_point = 'xy' , ** kwargs ):
689
+ def __init__ (self , xy , width , height , * ,
690
+ angle = 0.0 , rotation_point = 'xy' , ** kwargs ):
693
691
"""
694
692
Parameters
695
693
----------
@@ -890,9 +888,8 @@ def __str__(self):
890
888
self .orientation )
891
889
892
890
@_docstring .dedent_interpd
893
- @_api .make_keyword_only ("3.6" , name = "radius" )
894
- def __init__ (self , xy , numVertices , radius = 5 , orientation = 0 ,
895
- ** kwargs ):
891
+ def __init__ (self , xy , numVertices , * ,
892
+ radius = 5 , orientation = 0 , ** kwargs ):
896
893
"""
897
894
Parameters
898
895
----------
@@ -1078,8 +1075,7 @@ def __str__(self):
1078
1075
return "Polygon0()"
1079
1076
1080
1077
@_docstring .dedent_interpd
1081
- @_api .make_keyword_only ("3.6" , name = "closed" )
1082
- def __init__ (self , xy , closed = True , ** kwargs ):
1078
+ def __init__ (self , xy , * , closed = True , ** kwargs ):
1083
1079
"""
1084
1080
*xy* is a numpy array with shape Nx2.
1085
1081
@@ -1175,8 +1171,7 @@ def __str__(self):
1175
1171
return fmt % pars
1176
1172
1177
1173
@_docstring .dedent_interpd
1178
- @_api .make_keyword_only ("3.6" , name = "width" )
1179
- def __init__ (self , center , r , theta1 , theta2 , width = None , ** kwargs ):
1174
+ def __init__ (self , center , r , theta1 , theta2 , * , width = None , ** kwargs ):
1180
1175
"""
1181
1176
A wedge centered at *x*, *y* center with radius *r* that
1182
1177
sweeps *theta1* to *theta2* (in degrees). If *width* is given,
@@ -1264,8 +1259,7 @@ def __str__(self):
1264
1259
[0.8 , 0.3 ], [0.8 , 0.1 ]])
1265
1260
1266
1261
@_docstring .dedent_interpd
1267
- @_api .make_keyword_only ("3.6" , name = "width" )
1268
- def __init__ (self , x , y , dx , dy , width = 1.0 , ** kwargs ):
1262
+ def __init__ (self , x , y , dx , dy , * , width = 1.0 , ** kwargs ):
1269
1263
"""
1270
1264
Draws an arrow from (*x*, *y*) to (*x* + *dx*, *y* + *dy*).
1271
1265
The width of the arrow is scaled by *width*.
@@ -1320,9 +1314,9 @@ def __str__(self):
1320
1314
return "FancyArrow()"
1321
1315
1322
1316
@_docstring .dedent_interpd
1323
- @ _api . make_keyword_only ( "3.6" , name = "width" )
1324
- def __init__ ( self , x , y , dx , dy , width = 0.001 , length_includes_head = False ,
1325
- head_width = None , head_length = None , shape = 'full' , overhang = 0 ,
1317
+ def __init__ ( self , x , y , dx , dy , * ,
1318
+ width = 0.001 , length_includes_head = False , head_width = None ,
1319
+ head_length = None , shape = 'full' , overhang = 0 ,
1326
1320
head_starts_at_zero = False , ** kwargs ):
1327
1321
"""
1328
1322
Parameters
@@ -1491,8 +1485,7 @@ def __str__(self):
1491
1485
return s % (self .xy [0 ], self .xy [1 ], self .radius , self .numvertices )
1492
1486
1493
1487
@_docstring .dedent_interpd
1494
- @_api .make_keyword_only ("3.6" , name = "resolution" )
1495
- def __init__ (self , xy , radius = 5 ,
1488
+ def __init__ (self , xy , radius = 5 , * ,
1496
1489
resolution = 20 , # the number of vertices
1497
1490
** kwargs ):
1498
1491
"""
@@ -1519,8 +1512,7 @@ def __str__(self):
1519
1512
return fmt % pars
1520
1513
1521
1514
@_docstring .dedent_interpd
1522
- @_api .make_keyword_only ("3.6" , name = "angle" )
1523
- def __init__ (self , xy , width , height , angle = 0 , ** kwargs ):
1515
+ def __init__ (self , xy , width , height , * , angle = 0 , ** kwargs ):
1524
1516
"""
1525
1517
Parameters
1526
1518
----------
@@ -1906,9 +1898,8 @@ def __str__(self):
1906
1898
return fmt % pars
1907
1899
1908
1900
@_docstring .dedent_interpd
1909
- @_api .make_keyword_only ("3.6" , name = "angle" )
1910
- def __init__ (self , xy , width , height , angle = 0.0 ,
1911
- theta1 = 0.0 , theta2 = 360.0 , ** kwargs ):
1901
+ def __init__ (self , xy , width , height , * ,
1902
+ angle = 0.0 , theta1 = 0.0 , theta2 = 360.0 , ** kwargs ):
1912
1903
"""
1913
1904
Parameters
1914
1905
----------
@@ -4053,13 +4044,10 @@ def __str__(self):
4053
4044
return f"{ type (self ).__name__ } ({ self ._path_original } )"
4054
4045
4055
4046
@_docstring .dedent_interpd
4056
- @_api .make_keyword_only ("3.6" , name = "path" )
4057
- def __init__ (self , posA = None , posB = None , path = None ,
4058
- arrowstyle = "simple" , connectionstyle = "arc3" ,
4059
- patchA = None , patchB = None ,
4060
- shrinkA = 2 , shrinkB = 2 ,
4061
- mutation_scale = 1 , mutation_aspect = 1 ,
4062
- ** kwargs ):
4047
+ def __init__ (self , posA = None , posB = None , * ,
4048
+ path = None , arrowstyle = "simple" , connectionstyle = "arc3" ,
4049
+ patchA = None , patchB = None , shrinkA = 2 , shrinkB = 2 ,
4050
+ mutation_scale = 1 , mutation_aspect = 1 , ** kwargs ):
4063
4051
"""
4064
4052
There are two ways for defining an arrow:
4065
4053
@@ -4382,8 +4370,7 @@ def __str__(self):
4382
4370
(self .xy1 [0 ], self .xy1 [1 ], self .xy2 [0 ], self .xy2 [1 ])
4383
4371
4384
4372
@_docstring .dedent_interpd
4385
- @_api .make_keyword_only ("3.6" , name = "axesA" )
4386
- def __init__ (self , xyA , xyB , coordsA , coordsB = None ,
4373
+ def __init__ (self , xyA , xyB , coordsA , coordsB = None , * ,
4387
4374
axesA = None , axesB = None ,
4388
4375
arrowstyle = "-" ,
4389
4376
connectionstyle = "arc3" ,
0 commit comments