StateVariablePlot

class StateVariablePlot(values: DoubleArray, times: DoubleArray, val responseName: String) : BasePlot

Constructors

Link copied to clipboard
constructor(responseTrace: ResponseTrace, repNum: Int, time: Double = Double.MAX_VALUE)

Constructs a plot that has the times and values for the provided replication repNum up to and including the time. The default value of time is Double.MAX_VALUE, which will result in all values for the replication.

constructor(dataMap: Map<String, DoubleArray>, responseName: String)

The data map is assumed to have keys "times" and "values" Element "times" holds the times that the variable changed Element "values" holds the values associated with each time change.

constructor(values: DoubleArray, times: DoubleArray, responseName: String)

Properties

Link copied to clipboard
open override var defaultDPI: Int

the dots per inch for the plot

Link copied to clipboard
open override var defaultPlotDir: Path
Link copied to clipboard
open override var defaultScale: Int

the scale associated with the plot

Link copied to clipboard
open override var height: Int

The height of the container holding the plot

Link copied to clipboard
Link copied to clipboard
open override var title: String

The title of the plot

Link copied to clipboard
open override var width: Int

The width of the container holding the plot

Link copied to clipboard
open override var xLabel: String

the label for the x-axis

Link copied to clipboard
open override var yLabel: String

the label for the y-axis

Functions

Link copied to clipboard
open override fun buildPlot(): Plot

Builds a new instance of a Lets-Plot representation of the plot

Link copied to clipboard
open override fun saveToFile(fileName: String, directory: Path, plotTitle: String, extType: PlotIfc.ExtType): File
Link copied to clipboard
open override fun showInBrowser(plotTitle: String): File

Opens up a browser window and shows the contents of the plot within the browser. A temporary file is created to represent the plot for display within the browser.

Link copied to clipboard
open override fun toHTML(): String

An HTML representation of the plot for rendering

Link copied to clipboard
open override fun toString(): String