forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wxGUI/iclass: fix showing scatter plots (OSGeo#3169)
Compatible with Matplotlib v3.
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1019,8 +1019,7 @@ def imshow( | |
@author: Chris Beaumont <[email protected]> | ||
""" | ||
|
||
if not axes._hold: | ||
axes.cla() | ||
axes.cla() | ||
if norm is not None: | ||
assert isinstance(norm, mcolors.Normalize) | ||
if aspect is None: | ||
|
@@ -1069,7 +1068,7 @@ def imshow( | |
# to tightly fit the image, regardless of dataLim. | ||
im.set_extent(im.get_extent()) | ||
|
||
axes.images.append(im) | ||
axes.add_image(im) | ||
im._remove_method = lambda h: axes.images.remove(h) | ||
|
||
return im |