Skip to content

Commit 46c4585

Browse files
authored
Merge pull request #15371 from timhoffm/deprecate-colorbar-config_axis
Deprecate Colorbar.config_axis()
2 parents ba7a162 + 599b2fa commit 46c4585

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

doc/api/next_api_changes/deprecations.rst

+4
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ instead.
1212
~~~~~~~~~~~~~~~~~~~~~~~~
1313
``backend_wx.DEBUG_MSG`` is deprecated. The wx backends now use regular
1414
logging.
15+
16+
``Colorbar.config_axis()``
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
``Colorbar.config_axis()`` is considered internal. Its use is deprecated.

lib/matplotlib/colorbar.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,17 @@ def draw_all(self):
541541
X, Y = self._mesh()
542542
C = self._values[:, np.newaxis]
543543
# decide minor/major axis
544-
self.config_axis()
544+
self._config_axis()
545545
self._config_axes(X, Y)
546546
if self.filled:
547547
self._add_solids(X, Y, C)
548548

549+
@cbook.deprecated("3.3")
549550
def config_axis(self):
551+
self._config_axis()
552+
553+
def _config_axis(self):
554+
"""Configure the ticks, ticklabels and label of the underlying Axes."""
550555
ax = self.ax
551556

552557
if self.orientation == 'vertical':

0 commit comments

Comments
 (0)