We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6c1b1 commit c2c0026Copy full SHA for c2c0026
1 file changed
doc/users/next_whats_new/resample_colormaps.rst
@@ -1,6 +1,14 @@
1
-Make the resample method on `.Colormap` instances public
2
---------------------------------------------------------
+Colormap method for creating a different lookup table size
+----------------------------------------------------------
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)
14
-On `.LinearSegmentedColormap` and `.ListedColormap` the previously private
-``_resample`` method is made public as `.Colormap.resampled`. This method
-creates a new `.Colormap` instance with the specified lookup table size.
0 commit comments