Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Plot4Test
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TimeSeriesAnalysis.Utility
    Assembly: TimeSeriesAnalysis.dll
    Syntax
    public class Plot4Test

    Constructors

    | Edit this page View Source

    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.

    Declaration
    public Plot4Test(bool enableByDefault = true, int maxNplots = 6)
    Parameters
    Type Name Description
    bool enableByDefault
    int maxNplots

    Methods

    | Edit this page View Source

    Disable()

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

    Declaration
    public void Disable()
    | Edit this page View Source

    Enable()

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

    Declaration
    public void Enable()
    | Edit this page View Source

    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
    | Edit this page View Source

    GetNumberOfPlotsMade()

    Gets the number of plots that have been written

    Declaration
    public int GetNumberOfPlotsMade()
    Returns
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX