Class Plotter
This class contains static methods, to plot IWaveform implementations.
public static class Plotter
- Inheritance
-
Plotter
- Inherited Members
Methods
Plot(IWaveform, string)
Plots a waveform in a new window.
public static PlotWindowViewModel Plot(IWaveform waveform, string title = null)
Parameters
Returns
- PlotWindowViewModel
The window view model.
Exceptions
- ArgumentNullException
Thrown if
waveformis null.
Plot(IEnumerable<IWaveform>, bool, string)
Plots waveforms in a new window.
public static PlotWindowViewModel Plot(IEnumerable<IWaveform> waveforms, bool waveformsAreTimeBased = true, string title = null)
Parameters
waveformsIEnumerable<IWaveform>Waveforms to plot.
waveformsAreTimeBasedboolIf true the waveforms use the same x-axis but multiple y-axes.
titlestringThe optional title describing the plot.
Returns
- PlotWindowViewModel
The window view model.
Exceptions
- ArgumentNullException
Thrown if
waveformsis null.
PlotToCsv(IWaveform, string)
Plots a waveform in a CSV file.
public static void PlotToCsv(IWaveform waveform, string path = null)
Parameters
waveformIWaveformWaveforms to plot.
pathstringTarget path for file or folder. The file is named by the given
pathor if its an folder by the key or random if key is null, empty or whitespace.
PlotToCsv(IEnumerable<IWaveform>, string)
Plots multiple waveforms in a CSV file.
public static void PlotToCsv(IEnumerable<IWaveform> waveforms, string path = null)
Parameters
waveformsIEnumerable<IWaveform>Waveforms which will be plot to the
path.pathstringTarget path, can be file name or a folder name. The file is named according to the specified
pathor, if it is a folder, according to the keys of the waveforms, or according to the current timestamp if the keys are empty.