8000 fix axes_grid1.Grid that wrongly check isinstance instead of issubclass · matplotlib/matplotlib@a5e67b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a5e67b9

Browse files
committed
fix axes_grid1.Grid that wrongly check isinstance instead of issubclass
svn path=/trunk/matplotlib/; revision=8245
1 parent 398e174 commit a5e67b9

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
@@ -219,7 +219,7 @@ def __init__(self, fig,
219219
axes_class = self._defaultLocatableAxesClass
220220
axes_class_args = {}
221221
else:
222-
if isinstance(axes_class, maxes.Axes):
222+
if issubclass(axes_class, maxes.Axes):
223223
axes_class_args = {}
224224
else:
225225
axes_class, axes_class_args = axes_class

0 commit comments

Comments
 (0)
0