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
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
dataListList<double[]>plotNamesList<string>dT_sintcommentstringt0DateTimecaseNamestringdoStartChromebool
Returns
GetNumberOfPlotsMade()
Gets the number of plots that have been written
public int GetNumberOfPlotsMade()