File tree 1 file changed +10
-2
lines changed 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ class _AxesImageBase(martist.Artist, cm.ScalarMappable):
64
64
65
65
interpnames = list (six .iterkeys (_interpd ))
66
66
67
+ def set_cmap (self , cmap ):
68
+ super (_AxesImageBase , self ).set_cmap (cmap )
69
+ self .stale = True
70
+
71
+ def set_norm (self , norm ):
72
+ super (_AxesImageBase , self ).set_norm (norm )
73
+ self .stale = True
74
+
67
75
def __str__ (self ):
68
76
return "AxesImage(%g,%g;%gx%g)" % tuple (self .axes .bbox .bounds )
69
77
@@ -828,12 +836,12 @@ def set_filterrad(self, s):
828
836
def set_norm (self , norm ):
829
837
if self ._A is not None :
830
838
raise RuntimeError ('Cannot change colors after loading data' )
831
- cm . ScalarMappable .set_norm (self , norm )
839
+ super ( NonUniformImage , self ) .set_norm (self , norm )
832
840
833
841
def set_cmap (self , cmap ):
834
842
if self ._A is not None :
835
843
raise RuntimeError ('Cannot change colors after loading data' )
836
- cm . ScalarMappable .set_cmap (self , cmap )
844
+ super ( NonUniformImage , self ) .set_cmap (self , cmap )
837
845
838
846
839
847
class PcolorImage (martist .Artist , cm .ScalarMappable ):
You can’t perform that action at this time.
0 commit comments