lets-plot
lets-plot copied to clipboard
question:how to use lets-plot in compose for desktop?
hello, how to use lets-plot in compose for desktop?
As compose for desktop supports embedding of Swing components , you can try to use a plot Swing component available in lets-plot.
For example - DefaultPlotPanelBatik which extends JPanel.
Here is an example of using the DefaultPlotPanelBatik in a regular Java Swing application:
https://github.com/alshan/lets-plot-mini-apps/blob/15fe3e02bb8d646d78704e986238a6735634b415/jvm-swing-batik-app/src/main/kotlin/Main.kt#L145
Thanks,this helped me