Skip to content

Commit 808c011

Browse files
committed
Fix incorrect value check in axes_grid.
1 parent cfd52eb commit 808c011

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
@@ -499,7 +499,7 @@ def __init__(self, fig,
499499
if ngrids is None:
500500
ngrids = self._nrows * self._ncols
501501
else:
502-
if not 0 <= ngrids < self._nrows * self._ncols:
502+
if not 0 < ngrids <= self._nrows * self._ncols:
503503
raise Exception
504504

505505
self.ngrids = ngrids

0 commit comments

Comments
 (0)