Table of Contents

Class Plot4Test

Namespace
TimeSeriesAnalysis.Utility
Assembly
TimeSeriesAnalysis.dll

Version of Plot class where plots code can be Enabled()/Disabled() programatically. This allows you to keep all your "Plot" calls in your unit tests and turn them on as needed to debug a single test, while avoid being overwhelmed with plots if for instance re-running all unit tests.

public class Plot4Test
Inheritance
Plot4Test
Inherited Members

Constructors

Plot4Test(bool, int)

Determine wheter plots are to be enabled or disabled on. To further prevent thousands of plots from accidentally being created by this object a maximum number of plots is set, override as needed.

public Plot4Test(bool enableByDefault = true, int maxNplots = 6)

Parameters

enableByDefault bool
maxNplots int

Methods

Disable()

Disable all subsequent calls to plot using the same instance of this class.

public void Disable()

Enable()

Enable all subsequent calls to plot using the same instance of this class.

public void Enable()

FromList(List<double[]>, List<string>, int, string, DateTime, string, bool)

Wrapper for Plot.FromList that

public string FromList(List<double[]> dataList, List<string> plotNames, int dT_s, string comment = null, DateTime t0 = default, string caseName = "", bool doStartChrome = true)

Parameters

dataList List<double[]>
plotNames List<string>
dT_s int
comment string
t0 DateTime
caseName string
doStartChrome bool

Returns

string

GetNumberOfPlotsMade()

Gets the number of plots that have been written

public int GetNumberOfPlotsMade()

Returns

int