saveToFile

open override fun saveToFile(fileName: String, directory: Path, plotTitle: String, extType: PlotIfc.ExtType): 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

plotTitle

the title of the plot if different from title property

extType

the type of file, defaults to PNG