lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

question:how to use lets-plot in compose for desktop?

Open changhexuefei opened this issue 3 years ago • 1 comments

hello, how to use lets-plot in compose for desktop?

changhexuefei avatar Sep 06 '22 01:09 changhexuefei

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

alshan avatar Sep 11 '22 20:09 alshan

Thanks,this helped me

changhexuefei avatar Oct 13 '22 07:10 changhexuefei