Skip to content

Fix image interpolation #8966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 31, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FIX: make image.set_clim mark the figure as stale
Push the stale flag down into the ScalarMappable so that it gets
applied to all ScalarMappable sub-classes (ex Collections).
  • Loading branch information
tacaswell committed Aug 31, 2017
commit 346bb1a6fa7c2b8f699e1c9731d3d7cec51a7b06
1 change: 1 addition & 0 deletions lib/matplotlib/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,4 @@ def changed(self):

for key in self.update_dict:
self.update_dict[key] = True
self.stale = True
8 changes: 0 additions & 8 deletions lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,6 @@ def _interpdr(self):
def iterpnames(self):
return interpolations_names

def set_cmap(self, cmap):
super(_ImageBase, self).set_cmap(cmap)
self.stale = True

def set_norm(self, norm):
super(_ImageBase, self).set_norm(norm)
self.stale = True

def __str__(self):
return "AxesImage(%g,%g;%gx%g)" % tuple(self.axes.bbox.bounds)

Expand Down