Holoviews change datashader colormap
问题 I'm trying to change the colormap used by datashader. I tried this: datashade(scatter, cmap='Reds') Where scatter is an hv.Scatter element. This doesn't work because datashader expects an iterable or a function that returns colors. As such, this works: datashade(scatter, cmap=['blue']) So how can I take the 'Reds' colormap and convert it into something datashader can use? Thank you. 回答1: Right; you can't pass the string name of a colormap to Datashader's cmap argument, because Datashader