lets-plot
lets-plot copied to clipboard
Multiplatform plotting library based on the Grammar of Graphics
```python from lets_plot import * LetsPlot.setup_html() d = { 'x': [1, 2], 'y': [0, 0], 'c': [1, 2] } ggplot(d, aes(x='x', y='y')) \ + geom_point(aes(color=as_discrete('c', label="CCC", levels=[2, 1]))) + ggtitle("label='CCC',...
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')) + \...
``` + theme( panel_grid_major_y=element_line(size=2, linetype='dotted', color='pen') ) ``` results in exception.
Currently abline is corrupted on a chart with polar coord system.
Currently tooltip pops up only when hover over the dead center of point regardless of the point's size.
``` ggplot() + geom_point(x=0, y=0, size=10, size_unit="y") + coord_polar() ``` --- The emptiness ---
`+ scale_shape_identity()` works as expected but `+ scale_identity(aesthetic="shape")` produces error: > Internal error: IllegalStateException : [IdentityDiscreteMapperProvider] Can't create mapper for continuous domain DoubleSpan(21, 22)
Hello, It would be interesting to add the possibility of passing tuples to the linetype argument to define custom linetypes. I quite like the plotnine implementation: (4, (1, 4, 10,...
See ggplot2 legend [Spacing and margins](https://www.tidyverse.org/blog/2024/02/ggplot2-3-5-0-legends/#spacing-and-margins).
Combining `geom_imshow` with `scale_y_reverse ` does not seem to work: ``` ( ggplot() + scale_y_reverse() + geom_imshow(pixels, extent=[0, im.width, im.height, 0]) ) ``` produces i.e. the image gets clipped at...