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

Skip to content

Commit 5601342

Browse files
committed
FIX: do not use removed private methods
closes #5684
1 parent f9e405e commit 5601342

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/mpl_toolkits/axes_grid1/colorbar.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,8 @@ def __init__(self, ax, cmap=None,
374374
if format is None:
375375
if isinstance(self.norm, colors.LogNorm):
376376
# change both axis for proper aspect
377-
self.ax.xaxis.set_scale("log")
378-
self.ax.yaxis.set_scale("log")
379-
self.ax._update_transScale()
377+
self.ax.set_xscale("log")
378+
self.ax.set_yscale("log")
380379
self.cbar_axis.set_minor_locator(ticker.NullLocator())
381380
formatter = ticker.LogFormatter()
382381
else:

0 commit comments

Comments
 (0)