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

Duplicated legend labels are not allowed

Open MKoroteev-HORIS opened this issue 1 year ago • 0 comments

Legend labels are merged by name. Example:

data = pd.DataFrame({
    'category': ['A', 'B', 'C', 'D'],
    'value': [10, 15, 20, 25]
})

ggplot(data) + \
    geom_point(aes(x='category', y='value', color='category')) + \
    scale_color_manual(values=['red', 'blue', 'green', 'black'], labels=['Label A', 'Label B', 'Label A', 'Label D'])

Output: 2024-07-16 21_08_40-Untitled2 ipynb (9) - JupyterLab — Mozilla Firefox

Expected: 2024-07-16 21_09_18-Untitled2 ipynb (9) - JupyterLab — Mozilla Firefox

MKoroteev-HORIS avatar Jul 16 '24 18:07 MKoroteev-HORIS