JetBrains / lets-plot

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

secondary y-axis #1161

Closed syd-doyen closed 1 month ago

syd-doyen commented 1 month 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 1 month 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 1 month 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