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

Skip to content

Colorbar compatible gridspec2 #8758

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

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Changes to colorbar to allow list of SubplotSpec as the argument to ax
  • Loading branch information
jklymak committed Jun 13, 2017
commit 6b5971d506fc8a19e86cf6e8690db55565da2fd4
2 changes: 1 addition & 1 deletion lib/matplotlib/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15,
# helper functions for row,col to index.
def index2rowcolunm(index, ncols):
col = index % ncols + 1
row = int(np.floor(index / ncols ) + 1)
row = int(np.floor(index / ncols) + 1)
return row, col


Expand Down