MultiSeriesStateVariablePlot

class MultiSeriesStateVariablePlot(seriesDataMap: Map<String, Map<String, DoubleArray>>, val responseName: String) : BasePlot(source)

Plots multiple sample paths (step functions) for a time-weighted response variable on a single set of axes.

Each entry in seriesDataMap becomes one coloured step-function series. The outer key is the series label shown in the legend (e.g. "Rep 1"); the inner map must contain keys "times" and "values" holding the simulation times and corresponding state values respectively — the same shape returned by ResponseTrace.traceDataMap and ResponseTrace.traceDataMaps.

The convenience constructor accepts a ResponseTrace directly and handles data extraction and label generation automatically.

Parameters

seriesDataMap

series label → { "times" → DoubleArray, "values" → DoubleArray }

responseName

name used in the plot title and y-axis label

Constructors

Link copied to clipboard
constructor(seriesDataMap: Map<String, Map<String, DoubleArray>>, responseName: String)
constructor(responseTrace: ResponseTrace, repNums: List<Int> = responseTrace.replicationNumbers, startTime: Double = 0.0, endTime: Double = Double.MAX_VALUE)

Constructs a multi-series sample-path plot directly from a ResponseTrace.

Properties

Link copied to clipboard

Functions

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

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