lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

geom_path doesn't support different colors for segments

Open igRo opened this issue 4 years ago • 0 comments

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 Screenshot 2021-02-12 at 13 03 08

Actual:

  • the same color is used for all segments Screenshot 2021-02-12 at 13 03 25

igRo avatar Feb 12 '21 12:02 igRo