Closed fmvin closed 11 months ago
Hi @fmvin , depending on your needs, you can use PlotSvgExport
, PlotHtmlExport
or PlotImageExport
utility, in a way similar to how they are used in ggsave()
.
Will this work for you? At least as a workaround.
Hi, just added small demo which uses org.jetbrains.letsPlot.core.plot.export.PlotImageExport
utility to obtain bytes of a plot image along with the image dimensions:
https://github.com/alshan/lets-plot-mini-apps/blob/main/jvm-plot-export/src/main/kotlin/ExportPNG.kt
ggsave
exports plot only to a file. Please extendsggsave
to export a plot to data buffer.