Functions
Link copied to clipboard
fun saveToFile(figure: Figure, fileName: String, directory: Path = KSL.plotDir, extType: PlotIfc.ExtType = ExtType.PNG, defaultScale: Int = 2, defaultDPI: Int = 144): File
Saves the supplied plot to a file
Link copied to clipboard
fun showPlotInBrowser(figure: Figure, tmpFileName: String? = null, directory: Path = KSL.plotDir): File
Shows a lets-plot plot in a browser window
Link copied to clipboard
Produces an embeddable HTML fragment from a Figure — a <div> and inline <script> with no surrounding page structure. The caller is responsible for loading the Lets-Plot JS library once in the enclosing page's <head> via PlotHtmlHelper.scriptUrl.