JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
444 stars 38 forks source link

y scale doesn't work for bars/area #219

Closed AndreiKingsley closed 9 months ago

AndreiKingsley commented 1 year ago
image
IKupriyanov-HORIS commented 10 months ago

Hello, @AndreiKingsley. What specific result were you expecting? This is how ggplot2 works: image

AndreiKingsley commented 10 months ago

I expect that if I set axes limits, the plot will have axes exactly what I set - that's for certain. Regarding the behavior of bars in ggplot - why can't they be cropped?

alshan commented 9 months ago

Fixed by https://github.com/JetBrains/lets-plot/commit/d435488f5b1390632c08abd7c6d10c5700715dee Note however that the proper way to do zooming is to use xlim, ylim in coord system.