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 d79498b

Browse filesBrowse files
committed
make sure all gridspecs have a figure attribute
1 parent 9b6c490 commit d79498b
Copy full SHA for d79498b

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-0
lines changed

‎lib/matplotlib/gridspec.py

Copy file name to clipboardExpand all lines: lib/matplotlib/gridspec.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ def __init__(self, nrows, ncols,
555555
self._wspace = wspace
556556
self._hspace = hspace
557557
self._subplot_spec = subplot_spec
558+
self.figure = self._subplot_spec.get_gridspec().figure
558559
GridSpecBase.__init__(self, nrows, ncols,
559560
width_ratios=width_ratios,
560561
height_ratios=height_ratios)

0 commit comments

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