File tree 2 files changed +9
-1
lines changed
Filter options
2 files changed +9
-1
lines changed
Original file line number Diff line number Diff line change @@ -491,6 +491,14 @@ def update_normal(self, mappable=None):
491
491
and locator will be preserved.
492
492
"""
493
493
if mappable :
494
+ # The mappable keyword argument exists because
495
+ # ScalarMappable.changed() emits self.callbacks.process('changed', self)
496
+ # in contrast, ColorizingArtist (and Colorizer) does not use this keyword.
497
+ # [ColorizingArtist.changed() emits self.callbacks.process('changed')]
498
+ # Also, there is no test where self.mappable == mappable is not True
499
+ # and possibly no use case.
500
+ # Therefore, the mappable keyword can be depreciated if cm.ScalarMappable
501
+ # is removed.
494
502
self .mappable = mappable
495
503
_log .debug ('colorbar update normal %r %r' , self .mappable .norm , self .norm )
496
504
self .set_alpha (self .mappable .get_alpha ())
Original file line number Diff line number Diff line change 29
29
)
30
30
31
31
32
- class Colorizer () :
32
+ class Colorizer :
33
33
"""
34
34
Class that holds the data to color pipeline
35
35
accessible via `Colorizer.to_rgba(A)` and executed via
You can’t perform that action at this time.
0 commit comments