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

Skip to content

Commit 3cf2df9

Browse files
committed
Initial bivar_colorbar
1 parent bb49d49 commit 3cf2df9

3 files changed

Lines changed: 506 additions & 5 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3261,7 +3261,8 @@ def press_zoom(self, event):
32613261
# to the edge of the Axes bbox in the other dimension. To do that we
32623262
# store the orientation of the colorbar for later.
32633263
parent_ax = axes[0]
3264-
if hasattr(parent_ax, "_colorbar"):
3264+
if hasattr(parent_ax, "_colorbar") and hasattr(parent_ax._colorbar,
3265+
"orientation"):
32653266
cbar = parent_ax._colorbar.orientation
32663267
else:
32673268
cbar = None

0 commit comments

Comments
 (0)