@@ -659,9 +659,9 @@ def is_gray(self):
659
659
return (np .alltrue (self ._lut [:, 0 ] == self ._lut [:, 1 ]) and
660
660
np .alltrue (self ._lut [:, 0 ] == self ._lut [:, 2 ]))
661
661
662
- def reduce (self , lutsize ):
662
+ def resample (self , lutsize ):
663
663
"""
664
- Return a new color map with the *lutsize* entries.
664
+ Return a new color map with *lutsize* entries.
665
665
"""
666
666
raise NotImplementedError ()
667
667
@@ -778,9 +778,9 @@ def from_list(name, colors, N=256, gamma=1.0):
778
778
779
779
return LinearSegmentedColormap (name , cdict , N , gamma )
780
780
781
- def reduce (self , lutsize ):
781
+ def resample (self , lutsize ):
782
782
"""
783
- Return a new color map with the *lutsize* entries.
783
+ Return a new color map with *lutsize* entries.
784
784
"""
785
785
return LinearSegmentedColormap (self .name , self ._segmentdata , lutsize )
786
786
@@ -848,9 +848,9 @@ def _init(self):
848
848
self ._isinit = True
849
849
self ._set_extremes ()
850
850
851
- def reduce (self , lutsize ):
851
+ def resample (self , lutsize ):
852
852
"""
853
- Return a new color map with the *lutsize* entries.
853
+ Return a new color map with *lutsize* entries.
854
854
"""
855
855
return ListedColormap (self .name , self .colors , lutsize )
856
856
0 commit comments