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 f6d425f

Browse filesBrowse files
lpsingertimhoffm
andauthored
Update lib/matplotlib/figure.py
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 3e078bc commit f6d425f
Copy full SHA for f6d425f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,10 +1467,9 @@ def _gci(self):
14671467
``gci`` (get current image).
14681468
"""
14691469
# Look first for an image in the current Axes:
1470-
cax = self._axstack()
1471-
if cax is None:
1470+
if self._axstack.empty():
14721471
return None
1473-
im = cax._gci()
1472+
im = self._axstack()._gci()
14741473
if im is not None:
14751474
return im
14761475

0 commit comments

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