Plot recipes
Plot recipes are enabled by importing Plots:
using PlotsWe provide a plot recipe to display signals:
plot(data::SampledSignal; t0=0.0, downsample=:auto, pooling=:auto, kwargs...)Optional arguments:
t0=0.0: start time (for labeling only)downsample=:auto: downsampling factor (integer or:auto)pooling=:auto: pooling mode (:auto,:min,:max,:mean,:minmax,nothingor function)
If the signal is too long, it is automatically downsampled in a perceptually meaningful way. The downsampling can be controlled using the downsample and pooling keywords.
We also provide convenience plot recipes for common signal processing plots:
SignalAnalysis.psd — Function
Plots the power spectral density of data. Requires Plots to be loaded.
SignalAnalysis.specgram — Function
Plots a spectrogram of the data. Requires Plots to be loaded.
SignalAnalysis.plotfreqresp — Function
Plots frequency response of a digital filter. Requires Plots to be loaded.