saveToFile

fun saveToFile(fileName: String, directory: Path = defaultPlotDir, extType: PlotIfc.ExtType = PlotIfc.ExtType.PNG): File

Return

a File reference to the created file

Parameters

fileName

the name of the file without an extension

directory

the path to the directory to contain the file

extType

the type of file, defaults to PNG