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

Skip to content

Commit 701c4b2

Browse files
committed
Initial bivar_colorbar
1 parent bb49d49 commit 701c4b2

11 files changed

Lines changed: 809 additions & 11 deletions

File tree

doc/api/figure_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Annotating
6060
:nosignatures:
6161

6262
Figure.colorbar
63+
Figure.bivar_colorbar
6364
Figure.legend
6465
Figure.text
6566
Figure.suptitle
@@ -254,6 +255,7 @@ Annotating
254255
:nosignatures:
255256

256257
SubFigure.colorbar
258+
SubFigure.bivar_colorbar
257259
SubFigure.legend
258260
SubFigure.text
259261
SubFigure.suptitle

doc/api/pyplot_summary.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ Colormapping
263263

264264
clim
265265
colorbar
266+
bivar_colorbar
266267
gci
267268
sci
268269
get_cmap

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)