Skip to content

Commit c345d9c

Browse files
committed
Fixed axes_grid cax based on cbar_edge
1 parent 07a336e commit c345d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)