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

Skip to content

Commit 197180b

Browse files
committed
Remove deprecated ax attribute aliases.
1 parent c3b5114 commit 197180b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

doc/api/next_api_changes/removals/20447-ES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ longer supported.
4848
Setting the *orientation* of an ``eventplot()`` or `.EventCollection` to "none"
4949
or None is no longer supported; set it to "horizontal" instead. Moreover, the two
5050
orientations ("horizontal" and "vertical") are now case-sensitive.
51+
52+
``ContourSet.ax``, ``Quiver.ax``
53+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54+
These attributes have been removed in favor of ``ContourSet.axes`` and
55+
``Quiver.axes``, for consistency with other artists.

lib/matplotlib/contour.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,6 @@ class ContourSet(cm.ScalarMappable, ContourLabeler):
720720
%(contour_set_attributes)s
721721
"""
722722

723-
ax = _api.deprecated("3.3")(property(lambda self: self.axes))
724-
725723
def __init__(self, ax, *args,
726724
levels=None, filled=False, linewidths=None, linestyles=None,
727725
hatches=(None,), alpha=None, origin=None, extent=None,

lib/matplotlib/quiver.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,6 @@ def on_dpi_change(fig):
521521

522522
self._cid = ax.figure.callbacks.connect('dpi_changed', on_dpi_change)
523523

524-
@_api.deprecated("3.3", alternative="axes")
525-
def ax(self):
526-
return self.axes
527-
528524
def remove(self):
529525
# docstring inherited
530526
self.axes.figure.callbacks.disconnect(self._cid)

0 commit comments

Comments
 (0)