JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.57k stars 51 forks source link

"cmapmpl" color scale doesn't show the entire range of colors in continuous cmap. #1149

Closed alshan closed 3 months ago

alshan commented 3 months ago
from lets_plot import *
LetsPlot.setup_html()

x = list(range(50))
p = ggplot({'x': x}, aes(x='x')) + \
    geom_tile(aes(fill='x')) + \
    coord_cartesian() + \
    ggsize(600, 200)

p + scale_fill_cmapmpl('hsv')

image

Expected:

image

(https://matplotlib.org/stable/users/explain/colors/colormaps.html#cyclic)