File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- Make the resample method on `.Colormap ` instances public
2
- --------------------------------------------------------
1
+ Colormap method for creating a different lookup table size
2
+ ----------------------------------------------------------
3
+ The new method `.Colormap.resampled ` creates a new `.Colormap ` instance
4
+ with the specified lookup table size. This is a replacement for manipulating
5
+ the lookup table size via ``get_cmap ``.
6
+
7
+ Use::
8
+
9
+ get_cmap(name).resampled(N)
10
+
11
+ instead of::
12
+
13
+ get_cmap(name, lut=N)
3
14
4
- On `.LinearSegmentedColormap ` and `.ListedColormap ` the previously private
5
- ``_resample `` method is made public as `.Colormap.resampled `. This method
6
- creates a new `.Colormap ` instance with the specified lookup table size.
You can’t perform that action at this time.
0 commit comments