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

Skip to content

Commit 9ea98f4

Browse files
committed
Fixed axes_grid cax based on cbar_edge
1 parent 9233c44 commit 9ea98f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def __init__(self, fig,
643643
elif self._colorbar_mode == "edge":
644644
for index, ax in enumerate(self.axes_all):
645645
col, row = self._get_col_row(index)
646-
if self._direction == "row":
646+
if self._colorbar_location in ("left", "right"):
647647
ax.cax = self.cbar_axes[row]
648648
else:
649649
ax.cax = self.cbar_axes[col]

0 commit comments

Comments
 (0)