Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b6c490

Browse filesBrowse files
committed
FIX: properly check figure on gridspec
1 parent dec272c commit 9b6c490
Copy full SHA for 9b6c490

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/gridspec.py

Copy file name to clipboardExpand all lines: lib/matplotlib/gridspec.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def subplots(self, *, sharex=False, sharey=False, squeeze=True,
293293
.pyplot.subplot
294294
"""
295295

296-
figure = self[0, 0].get_topmost_subplotspec().get_gridspec().figure
296+
figure = self.figure
297297

298298
if figure is None:
299299
raise ValueError("GridSpec.subplots() only works for GridSpecs "

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.