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

Skip to content

Commit 514192f

Browse files
committed
FIX
1 parent 9c40739 commit 514192f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ def set_aspect(self, aspect):
963963
"""
964964
Set ratio of the long axis to short axis.
965965
"""
966+
self.ax._colorbar_info['aspect'] = aspect
966967
if self.orientation == 'horizontal':
967968
aspect = 1 / aspect
968969
self.ax.set_box_aspect(aspect)

0 commit comments

Comments
 (0)