8000 Corrected cax attributes of ImageGrid axes by inclement · Pull Request #3957 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Corrected cax attributes of ImageGrid axes #3957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 19, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Prev Previous commit
Next Next commit
Fixed axes_grid cax based on cbar_edge
  • Loading branch information
inclement committed Feb 6, 2015
commit 9ea98f4b1ee86f6de5631f726e94e605def63d95
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/axes_grid1/axes_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def __init__(self, fig,
elif self._colorbar_mode == "edge":
for index, ax in enumerate(self.axes_all):
col, row = self._get_col_row(index)
if self._direction == "row":
if self._colorbar_location in ("left", "right"):
ax.cax = self.cbar_axes[row]
else:
ax.cax = self.cbar_axes[col]
Expand Down
0