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

Skip to content

Commit 462a38a

Browse files
committed
FIX: aspect ratio locked when colorbar created, not axes
1 parent 2e02f9b commit 462a38a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/colorbar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ def __call__(self, ax, renderer):
261261
# we need to reset the aspect ratio of the axes to account
262262
# of the extends...
263263

264-
aspect = ax.get_box_aspect()
265264
ax._colorbar_info['aspect'] = aspect
266265
# now shrink and/or offset to take into account the
267266
# extend tri/rectangles.

0 commit comments

Comments
 (0)