Skip to content

Commit c2c0026

Browse files
tacaswelltimhoffm
andcommitted
DOC: make whats new entry more verbose
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 4b6c1b1 commit c2c0026

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

doc/users/next_whats_new/resample_colormaps.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
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)
314

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.

0 commit comments

Comments
 (0)