pybic.BicAn.PlotHelper
- BicAn.PlotHelper(whatPlot, X, Y, IsFreq=False, CheckNeighbors=False, fig=None, ax=None, Ntrials=200, b2bins=100, cVal=0.999, SaveAs=None, NoXLabel=False)[source]
Estimate and plot distribution of bispectrum/bicoherence for single point.
- Parameters:
whatPlot (str) – Input string indicating desired plot. Accepts
'b2Prob','Phasor', or'BvsTime'.IsFreq (bool) –
TrueforXandYin frequency units.CheckNeighbors (bool) – Perform analysis on nearby points.
fig (
Figure) – Input figure.ax (
Axes) – Input axes.Ntrials (int) – Number of random trials for uncertainty analysis (
whatPlot='b2Prob').b2bins (int) – Number of bicoherence bins in uncertainty analysis (
whatPlot='b2Prob').cVal (float) – Critical level for random phase b2 estimate (
whatPlot='b2Prob').NoXLabel (bool) – Omit x axis label.
- Returns:
Output of uncertainty analysis (i.e., empty list if
whatPlot!='b2Prob').[<bootstrap mean>, <bootstrap std>, <critical b2>, <noise floor>]- Return type:
Caution
When
IsFreq = True, the corresponding frequency bin is dependent on theFScaleattribute, i.e.,X=[6],Y=[7]indicates 6 and 7 kHz forFScale=3but 6 and 7 nHz forFScale=-9.See also
BicAn.PlotPointOut()Wrapper function with simpler interface.
BicAn.PlotGUI()Graphical interface which subsumes
BicAn.PlotPointOut()andBicAn.PlotHelper().