Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f80676

Browse files
committed
Update a couple of remaining uses of gci._current to sci().
svn path=/trunk/matplotlib/; revision=7832
1 parent b096a6e commit 7f80676

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def figimage(*args, **kwargs):
401401
# allow callers to override the hold state by passing hold=True|False
402402
ret = gcf().figimage(*args, **kwargs)
403403
draw_if_interactive()
404-
gci._current = ret
404+
sci(ret)
405405
return ret
406406

407407
def figlegend(handles, labels, loc, **kwargs):
@@ -1444,7 +1444,7 @@ def matshow(A, fignum=None, **kw):
14441444
ax = fig.add_axes([0.15, 0.09, 0.775, 0.775])
14451445

14461446
im = ax.matshow(A, **kw)
1447-
gci._current = im
1447+
sci(im)
14481448

14491449
draw_if_interactive()
14501450
return im
@@ -2629,7 +2629,3 @@ def spectral():
26292629
if im is not None:
26302630
im.set_cmap(cm.spectral)
26312631
draw_if_interactive()
2632-
2633-
2634-
2635-

0 commit comments

Comments
 (0)