Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
02158b1
FIX: attempting to draw marks figure as not-stale
tacaswell Jul 18, 2015
b0c3741
PEP: remove extra lines
tacaswell Jul 18, 2015
7f3ef65
FIX: do not propogate stale on animated artists
tacaswell Jul 23, 2015
a677634
MNT: Limit what propagates stale to figure
tacaswell Jul 23, 2015
6d6e39a
API: forbid changing figure of Artist instance
tacaswell Jul 23, 2015
1aec54b
MNT: do not re-trigger draws during draw
tacaswell Jul 23, 2015
1a58f17
DOC: added explanatory comments to example
tacaswell Jul 23, 2015
72c5ce2
FIX: make sure that offset boxes propagate axes
tacaswell Jul 31, 2015
4cc9a74
TST: don't reuse artists in tests
tacaswell Jul 31, 2015
b39fd90
FIX: protect against None child
tacaswell Jul 31, 2015
0b49a55
MNT: use direct callback for stale, not pchanged
tacaswell Aug 1, 2015
59eaad6
MNT: still only propagate True up the chain
tacaswell Aug 1, 2015
69b1b36
MNT: fix vanilla python repl hook
tacaswell Aug 1, 2015
770b8d5
FIX: remove excessive stale cleaning
tacaswell Aug 1, 2015
aa810b6
MNT: don't need try/except anymore
tacaswell Aug 1, 2015
0af89d7
FIX: fix stupid bug in pyplot
tacaswell Aug 1, 2015
14b5a36
FIX: don't push race condition on un-pickling
tacaswell Aug 1, 2015
252d7a7
MNT: make base draw_idle re-entrant
tacaswell Aug 6, 2015
a44b74d
FIX: fix documentation typos
tacaswell Aug 7, 2015
53e2db2
MNT: use no-op callback instead of None
tacaswell Aug 7, 2015
54e04d3
FIX: remove stale callback on pickling
tacaswell Aug 9, 2015
5bd4711
MNT: make figure use base-class __getstate__
tacaswell Aug 10, 2015
a48be9f
MNT: defaulting `Artist.stale_callback` to None
tacaswell Aug 10, 2015
13e7c09
FIX: stale propagation in artist without fig/ax
Aug 11, 2015
83ea020
MNT: make sorting out what to re-draw faster
tacaswell Aug 12, 2015
a5f5ab5
MNT: make set_animated smarter
tacaswell Aug 12, 2015
c75f75d
MNT: when blitting in make artist animated
tacaswell Aug 12, 2015
51cc0ca
MNT: set animated to blit state
tacaswell Aug 12, 2015
0e201f9
MNT: setting cmap/norm marks as stale
tacaswell Aug 12, 2015
25079bf
MNT: set_data on FigureImage marks as stale
tacaswell Aug 12, 2015
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
MNT: setting cmap/norm marks as stale
  • Loading branch information
tacaswell committed Aug 14, 2015
commit 0e201f9806beb2603fe0547d94ce9920d033c645
12 changes: 10 additions & 2 deletions lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ class _AxesImageBase(martist.Artist, cm.ScalarMappable):

interpnames = list(six.iterkeys(_interpd))

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

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

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

Expand Down Expand Up @@ -828,12 +836,12 @@ def set_filterrad(self, s):
def set_norm(self, norm):
if self._A is not None:
raise RuntimeError('Cannot change colors after loading data')
cm.ScalarMappable.set_norm(self, norm)
super(NonUniformImage, self).set_norm(self, norm)

def set_cmap(self, cmap):
if self._A is not None:
raise RuntimeError('Cannot change colors after loading data')
cm.ScalarMappable.set_cmap(self, cmap)
super(NonUniformImage, self).set_cmap(self, cmap)


class PcolorImage(martist.Artist, cm.ScalarMappable):
Expand Down