'Subset of colormap in holoviews/hvplot

I have a DataFrame and I want to plot it in a scatter plot with different scatter colors depending on the sample name. I do it for example with:

df.hvplot.scatter(x='x', y='y', color='Sample name', cmap='Reds')

enter image description here

The problem is I would like to have more similar colors among samples, so that they do not span from dark red to almost white, but, let's say, from dark red to red.

So my question is how can I get a subset of the Reds colormap or of any othere holoviews compatible colormap and pass it to the cmap argument to get what I want?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source