Skip to content

Commit

Permalink
Add back _remove_method
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jan 25, 2019
1 parent ed6562f commit e675dd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions glue/viewers/image/frb_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,12 @@ def imshow(axes, X, aspect=None, vmin=None, vmax=None, **kwargs):
if vmin is not None or vmax is not None:
im.set_clim(vmin, vmax)

axes.images.append(im)

def remove(h):
axes.images.remove(h)

# The following is needed for Matplotlib's .remove() method to work
im._remove_method = remove

return im

0 comments on commit e675dd0

Please sign in to comment.