@@ -40,18 +40,6 @@ class Patch(artist.Artist):
40
40
"""
41
41
zorder = 1
42
42
43
- @_api .deprecated ("3.4" )
44
- @_api .classproperty
45
- def validCap (cls ):
46
- with _api .suppress_matplotlib_deprecation_warning ():
47
- return mlines .Line2D .validCap
48
-
49
- @_api .deprecated ("3.4" )
50
- @_api .classproperty
51
- def validJoin (cls ):
52
- with _api .suppress_matplotlib_deprecation_warning ():
53
- return mlines .Line2D .validJoin
54
-
55
43
# Whether to draw an edge by default. Set on a
56
44
# subclass-by-subclass basis.
57
45
_edge_default = False
@@ -4229,13 +4217,11 @@ def __str__(self):
4229
4217
return f"{ type (self ).__name__ } ({ self ._path_original } )"
4230
4218
4231
4219
@docstring .dedent_interpd
4232
- @_api .delete_parameter ("3.4" , "dpi_cor" )
4233
4220
def __init__ (self , posA = None , posB = None , path = None ,
4234
4221
arrowstyle = "simple" , connectionstyle = "arc3" ,
4235
4222
patchA = None , patchB = None ,
4236
4223
shrinkA = 2 , shrinkB = 2 ,
4237
4224
mutation_scale = 1 , mutation_aspect = 1 ,
4238
- dpi_cor = 1 ,
4239
4225
** kwargs ):
4240
4226
"""
4241
4227
There are two ways for defining an arrow:
@@ -4291,10 +4277,6 @@ def __init__(self, posA=None, posB=None, path=None,
4291
4277
the mutation and the mutated box will be stretched by the inverse
4292
4278
of it.
4293
4279
4294
- dpi_cor : float, default: 1
4295
- dpi_cor is currently used for linewidth-related things and shrink
4296
- factor. Mutation scale is affected by this. Deprecated.
4297
-
4298
4280
Other Parameters
4299
4281
----------------
4300
4282
**kwargs : `.Patch` properties, optional
@@ -4335,32 +4317,7 @@ def __init__(self, posA=None, posB=None, path=None,
4335
4317
self ._mutation_scale = mutation_scale
4336
4318
self ._mutation_aspect = mutation_aspect
4337
4319
4338
- self ._dpi_cor = dpi_cor
4339
-
4340
- @_api .deprecated ("3.4" )
4341
- def set_dpi_cor (self , dpi_cor ):
4342
- """
4343
- dpi_cor is currently used for linewidth-related things and
4344
- shrink factor. Mutation scale is affected by this.
4345
-
4346
- Parameters
4347
- ----------
4348
- dpi_cor : float
4349
- """
4350
- self ._dpi_cor = dpi_cor
4351
- self .stale = True
4352
-
4353
- @_api .deprecated ("3.4" )
4354
- def get_dpi_cor (self ):
4355
- """
4356
- dpi_cor is currently used for linewidth-related things and
4357
- shrink factor. Mutation scale is affected by this.
4358
-
4359
- Returns
4360
- -------
4361
- scalar
4362
- """
4363
- return self ._dpi_cor
4320
+ self ._dpi_cor = 1.0
4364
4321
4365
4322
def set_positions (self , posA , posB ):
4366
4323
"""
@@ -4575,7 +4532,6 @@ def __str__(self):
4575
4532
(self .xy1 [0 ], self .xy1 [1 ], self .xy2 [0 ], self .xy2 [1 ])
4576
4533
4577
4534
@docstring .dedent_interpd
4578
- @_api .delete_parameter ("3.4" , "dpi_cor" )
4579
4535
def __init__ (self , xyA , xyB , coordsA , coordsB = None ,
4580
4536
axesA = None , axesB = None ,
4581
4537
arrowstyle = "-" ,
@@ -4587,7 +4543,6 @@ def __init__(self, xyA, xyB, coordsA, coordsB=None,
4587
4543
mutation_scale = 10. ,
4588
4544
mutation_aspect = None ,
4589
4545
clip_on = False ,
4590
- dpi_cor = 1. ,
4591
4546
** kwargs ):
4592
4547
"""
4593
4548
Connect point *xyA* in *coordsA* with point *xyB* in *coordsB*.
@@ -4677,8 +4632,6 @@ def __init__(self, xyA, xyB, coordsA, coordsB=None,
4677
4632
mutation_aspect = mutation_aspect ,
4678
4633
clip_on = clip_on ,
4679
4634
** kwargs )
4680
- self ._dpi_cor = dpi_cor
4681
-
4682
4635
# if True, draw annotation only if self.xy is inside the axes
4683
4636
self ._annotation_clip = None
4684
4637
0 commit comments