File tree 2 files changed +3
-8
lines changed
Filter options
2 files changed +3
-8
lines changed
Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ def set_clim(self, vmin=None, vmax=None):
311
311
if vmax is not None :
312
312
self .norm .vmax = vmax
313
313
self .changed ()
314
+ self .stale = True
314
315
315
316
def set_cmap (self , cmap ):
316
317
"""
@@ -321,13 +322,15 @@ def set_cmap(self, cmap):
321
322
cmap = get_cmap (cmap )
322
323
self .cmap = cmap
323
324
self .changed ()
325
+ self .stale = True
324
326
325
327
def set_norm (self , norm ):
326
328
'set the normalization instance'
327
329
if norm is None :
328
330
norm = colors .Normalize ()
329
331
self .norm = norm
330
332
self .changed ()
333
+ self .stale = True
331
334
332
335
def autoscale (self ):
333
336
"""
Original file line number Diff line number Diff line change @@ -192,14 +192,6 @@ def _interpdr(self):
192
192
def iterpnames (self ):
193
193
return interpolations_names
194
194
195
- def set_cmap (self , cmap ):
196
- super (_ImageBase , self ).set_cmap (cmap )
197
- self .stale = True
198
-
199
- def set_norm (self , norm ):
200
- super (_ImageBase , self ).set_norm (norm )
201
- self .stale = True
202
-
203
195
def __str__ (self ):
204
196
return "AxesImage(%g,%g;%gx%g)" % tuple (self .axes .bbox .bounds )
205
197
You can’t perform that action at this time.
0 commit comments