@@ -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
Parameters
1085
1081
----------
@@ -1177,8 +1173,7 @@ def __str__(self):
1177
1173
return fmt % pars
1178
1174
1179
1175
@_docstring .dedent_interpd
1180
- @_api .make_keyword_only ("3.6" , name = "width" )
1181
- def __init__ (self , center , r , theta1 , theta2 , width = None , ** kwargs ):
1176
+ def __init__ (self , center , r , theta1 , theta2 , * , width = None , ** kwargs ):
1182
1177
"""
1183
1178
A wedge centered at *x*, *y* center with radius *r* that
1184
1179
sweeps *theta1* to *theta2* (in degrees). If *width* is given,
@@ -1266,8 +1261,7 @@ def __str__(self):
1266
1261
[0.8 , 0.3 ], [0.8 , 0.1 ]])
1267
1262
1268
1263
@_docstring .dedent_interpd
1269
- @_api .make_keyword_only ("3.6" , name = "width" )
1270
- def __init__ (self , x , y , dx , dy , width = 1.0 , ** kwargs ):
1264
+ def __init__ (self , x , y , dx , dy , * , width = 1.0 , ** kwargs ):
1271
1265
"""
1272
1266
Draws an arrow from (*x*, *y*) to (*x* + *dx*, *y* + *dy*).
1273
1267
The width of the arrow is scaled by *width*.
@@ -1322,9 +1316,9 @@ def __str__(self):
1322
1316
return "FancyArrow()"
1323
1317
1324
1318
@_docstring .dedent_interpd
1325
- @ _api . make_keyword_only ( "3.6" , name = "width" )
1326
- def __init__ ( self , x , y , dx , dy , width = 0.001 , length_includes_head = False ,
1327
- head_width = None , head_length = None , shape = 'full' , overhang = 0 ,
1319
+ def __init__ ( self , x , y , dx , dy , * ,
1320
+ width = 0.001 , length_includes_head = False , head_width = None ,
1321
+ head_length = None , shape = 'full' , overhang = 0 ,
1328
1322
head_starts_at_zero = False , ** kwargs ):
1329
1323
"""
1330
1324
Parameters
@@ -1493,8 +1487,7 @@ def __str__(self):
1493
1487
return s % (self .xy [0 ], self .xy [1 ], self .radius , self .numvertices )
1494
1488
1495
1489
@_docstring .dedent_interpd
1496
- @_api .make_keyword_only ("3.6" , name = "resolution" )
1497
- def __init__ (self , xy , radius = 5 ,
1490
+ def __init__ (self , xy , radius = 5 , * ,
1498
1491
resolution = 20 , # the number of vertices
1499
1492
** kwargs ):
1500
1493
"""
@@ -1521,8 +1514,7 @@ def __str__(self):
1521
1514
return fmt % pars
1522
1515
1523
1516
@_docstring .dedent_interpd
1524
- @_api .make_keyword_only ("3.6" , name = "angle" )
1525
- def __init__ (self , xy , width , height , angle = 0 , ** kwargs ):
1517
+ def __init__ (self , xy , width , height , * , angle = 0 , ** kwargs ):
1526
1518
"""
1527
1519
Parameters
1528
1520
----------
@@ -1908,9 +1900,8 @@ def __str__(self):
1908
1900
return fmt % pars
1909
1901
1910
1902
@_docstring .dedent_interpd
1911
- @_api .make_keyword_only ("3.6" , name = "angle" )
1912
- def __init__ (self , xy , width , height , angle = 0.0 ,
1913
- theta1 = 0.0 , theta2 = 360.0 , ** kwargs ):
1903
+ def __init__ (self , xy , width , height , * ,
1904
+ angle = 0.0 , theta1 = 0.0 , theta2 = 360.0 , ** kwargs ):
1914
1905
"""
1915
1906
Parameters
1916
1907
----------
@@ -4043,13 +4034,10 @@ def __str__(self):
4043
4034
return f"{ type (self ).__name__ } ({ self ._path_original } )"
4044
4035
4045
4036
@_docstring .dedent_interpd
4046
- @_api .make_keyword_only ("3.6" , name = "path" )
4047
- def __init__ (self , posA = None , posB = None , path = None ,
4048
- arrowstyle = "simple" , connectionstyle = "arc3" ,
4049
- patchA = None , patchB = None ,
4050
- shrinkA = 2 , shrinkB = 2 ,
4051
- mutation_scale = 1 , mutation_aspect = 1 ,
4052
- ** kwargs ):
4037
+ def __init__ (self , posA = None , posB = None , * ,
4038
+ path = None , arrowstyle = "simple" , connectionstyle = "arc3" ,
4039
+ patchA = None , patchB = None , shrinkA = 2 , shrinkB = 2 ,
4040
+ mutation_scale = 1 , mutation_aspect = 1 , ** kwargs ):
4053
4041
"""
4054
4042
There are two ways for defining an arrow:
4055
4043
@@ -4372,8 +4360,7 @@ def __str__(self):
4372
4360
(self .xy1 [0 ], self .xy1 [1 ], self .xy2 [0 ], self .xy2 [1 ])
4373
4361
4374
4362
@_docstring .dedent_interpd
4375
- @_api .make_keyword_only ("3.6" , name = "axesA" )
4376
- def __init__ (self , xyA , xyB , coordsA , coordsB = None ,
4363
+ def __init__ (self , xyA , xyB , coordsA , coordsB = None , * ,
4377
4364
axesA = None , axesB = None ,
4378
4365
arrowstyle = "-" ,
4379
4366
connectionstyle = "arc3" ,
0 commit comments