Class Plot4Test
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.
Inherited Members
Namespace: TimeSeriesAnalysis.Utility
Assembly: TimeSeriesAnalysis.dll
Syntax
public class Plot4Test
Constructors
| Edit this page View SourcePlot4Test(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.
Declaration
public Plot4Test(bool enableByDefault = true, int maxNplots = 6)
Parameters
Type | Name | Description |
---|---|---|
bool | enableByDefault | |
int | maxNplots |
Methods
| Edit this page View SourceDisable()
Disable all subsequent calls to plot using the same instance of this class.
Declaration
public void Disable()
Enable()
Enable all subsequent calls to plot using the same instance of this class.
Declaration
public void Enable()
FromList(List<double[]>, List<string>, int, string, DateTime, string, bool)
Wrapper for Plot.FromList that
Declaration
public string FromList(List<double[]> dataList, List<string> plotNames, int dT_s, string comment = null, DateTime t0 = default, string caseName = "", bool doStartChrome = true)
Parameters
Type | Name | Description |
---|---|---|
List<double[]> | dataList | |
List<string> | plotNames | |
int | dT_s | |
string | comment | |
DateTime | t0 | |
string | caseName | |
bool | doStartChrome |
Returns
Type | Description |
---|---|
string |
GetNumberOfPlotsMade()
Gets the number of plots that have been written
Declaration
public int GetNumberOfPlotsMade()
Returns
Type | Description |
---|---|
int |