lets-plot
lets-plot copied to clipboard
geom_path doesn't support different colors for segments
Different colors for path segments are not supported.
Steps:
- execute the following code:
import pandas as pd
import numpy as np
from lets_plot import *
x = np.random.uniform(-1, 1, size=100)
y = np.random.normal(size=100)
dat = pd.DataFrame({'x': x, 'y': 25 * x ** 2 + y})
ggplot(dat, aes(x='x', y='y', color='y')) + geom_path()
Expected:
- different segments are drawn with different colors
Actual:
- the same color is used for all segments