Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 283d322

Browse files
committed
Remove keyword arguments deprecated in 3.0.
These were documented as being removed in 3.1, though should have been at least 3.2, but 3.3 works.
1 parent b94812c commit 283d322

File tree

3 files changed

+4
-27
lines changed

3 files changed

+4
-27
lines changed

doc/api/api_changes_3.3/removals.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ Arguments
195195
other than ``ticklabels``.
196196
- ``mpl_toolkits.mplot3d.art3d.Poly3DCollection.set_zsort`` does not accept
197197
the value ``True`` anymore. Pass the equivalent value 'average' instead.
198+
- `~.ConnectionPatch` no longer accepts the ``arrow_transmuter`` and
199+
``connector`` keyword arguments, which did nothing since 3.0.
200+
- `~.FancyArrowPatch` no longer accepts the ``arrow_transmuter`` and
201+
``connector`` keyword arguments, which did nothing since 3.0.
198202

199203
rcParams
200204
~~~~~~~~

lib/matplotlib/patches.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3825,9 +3825,7 @@ def __str__(self):
38253825
def __init__(self, posA=None, posB=None,
38263826
path=None,
38273827
arrowstyle="simple",
3828-
arrow_transmuter=None,
38293828
connectionstyle="arc3",
3830-
connector=None,
38313829
patchA=None,
38323830
patchB=None,
38333831
shrinkA=2,
@@ -3866,9 +3864,6 @@ def __init__(self, posA=None, posB=None,
38663864
38673865
%(AvailableArrowstyles)s
38683866
3869-
arrow_transmuter
3870-
Ignored.
3871-
38723867
connectionstyle : str or `.ConnectionStyle` or None, optional, \
38733868
default: 'arc3'
38743869
The `.ConnectionStyle` with which *posA* and *posB* are connected.
@@ -3878,9 +3873,6 @@ def __init__(self, posA=None, posB=None,
38783873
38793874
%(AvailableConnectorstyles)s
38803875
3881-
connector
3882-
Ignored.
3883-
38843876
patchA, patchB : `.Patch`, default: None
38853877
Head and tail patches, respectively.
38863878
@@ -3910,20 +3902,6 @@ def __init__(self, posA=None, posB=None,
39103902
In contrast to other patches, the default ``capstyle`` and
39113903
``joinstyle`` for `FancyArrowPatch` are set to ``"round"``.
39123904
"""
3913-
if arrow_transmuter is not None:
3914-
cbook.warn_deprecated(
3915-
3.0,
3916-
message=('The "arrow_transmuter" keyword argument is not used,'
3917-
' and will be removed in Matplotlib 3.1'),
3918-
name='arrow_transmuter',
3919-
obj_type='keyword argument')
3920-
if connector is not None:
3921-
cbook.warn_deprecated(
3922-
3.0,
3923-
message=('The "connector" keyword argument is not used,'
3924-
' and will be removed in Matplotlib 3.1'),
3925-
name='connector',
3926-
obj_type='keyword argument')
39273905
# Traditionally, the cap- and joinstyle for FancyArrowPatch are round
39283906
kwargs.setdefault("joinstyle", "round")
39293907
kwargs.setdefault("capstyle", "round")
@@ -4193,9 +4171,7 @@ def __str__(self):
41934171
def __init__(self, xyA, xyB, coordsA, coordsB=None,
41944172
axesA=None, axesB=None,
41954173
arrowstyle="-",
4196-
arrow_transmuter=None,
41974174
connectionstyle="arc3",
4198-
connector=None,
41994175
patchA=None,
42004176
patchB=None,
42014177
shrinkA=0.,
@@ -4278,9 +4254,7 @@ def __init__(self, xyA, xyB, coordsA, coordsB=None,
42784254
FancyArrowPatch.__init__(self,
42794255
posA=(0, 0), posB=(1, 1),
42804256
arrowstyle=arrowstyle,
4281-
arrow_transmuter=arrow_transmuter,
42824257
connectionstyle=connectionstyle,
4283-
connector=connector,
42844258
patchA=patchA,
42854259
patchB=patchB,
42864260
shrinkA=shrinkA,

lib/mpl_toolkits/axisartist/axisline_style.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def __init__(self, axis_artist, line_path, transform,
2121
FancyArrowPatch.__init__(self,
2222
path=self._line_path,
2323
arrowstyle=self._ARROW_STYLE,
24-
arrow_transmuter=None,
2524
patchA=None,
2625
patchB=None,
2726
shrinkA=0.,

0 commit comments

Comments
 (0)