JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.57k stars 51 forks source link

secondary y-axis #1161

Closed syd-doyen closed 2 months ago

syd-doyen commented 3 months ago

Hi, Question: Is it was possible to have a secondary y-axis . In ggplot, scale_y_continuous has a parameter sec-axis that allows you to have a second vertical axis. I could not find the same parameter lets-plot scale_y_continuous. Thanks.

alshan commented 2 months ago

Hi, lets-plot doesn't have support for secondary axes. Also, I feel there might be a better solution targeting the series comparison use case.

syd-doyen commented 2 months ago

HI Igor,

Thanks for your response. Before I attempt, would you know if I can draw an axis independently and added to a plot with the data associated with the second vertical axis scaled to be within the original vertical axis.

Cheers, Aldo