Skip to content

Commit c4225f3

Browse files
committed
FIX
1 parent a777703 commit c4225f3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/gridspec.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ def _check_gridspec_exists(figure, nrows, ncols):
213213
if hasattr(ax, 'get_subplotspec'):
214214
ggs = ax.get_subplotspec().get_gridspec()
215215
if hasattr(ggs, 'get_topmost_subplotspec'):
216-
# This is needed for colorbar gridspec layouts.
217-
# This is probably OK becase this whole logic tree
218-
# is for when the user is doing simple things with the
219-
# add_subplot command. Complicated stuff, the proper
220-
# gridspec is passed in...
221-
ggs = ggs.get_topmost_subplotspec().get_gridspec()
216+
# This is needed for colorbar gridspec layouts.
217+
# This is probably OK becase this whole logic tree
218+
# is for when the user is doing simple things with the
219+
# add_subplot command. Complicated stuff, the proper
220+
# gridspec is passed in...
221+
ggs = ggs.get_topmost_subplotspec().get_gridspec()
222222
(nrow, ncol) = ggs.get_geometry()
223223
if nrow == nrows and ncol == ncols:
224224
gs = ggs

0 commit comments

Comments
 (0)