Acoular 20.10 documentation

acoular.tools.bardata

«  acoular.tools.barspectrum   ::   tools   ::   tprocess  »

acoular.tools.bardata

acoular.tools.bardata(data, fc, num=3, bar=True, xoffset=0.0, masked=- 360)

Returns data to be plotted as bar graph with the matlpotlib plot command.

Parameters
dataarray of floats

The spectral data

fcarray of floats

Band center frequencies

barbool

If True, returns bar-like curve. If False, normal plot (direct line between data points) is returned.

xoffsetfloat

If bar is True, offset of the perpendicular line (helpful if plotting several curves above each other).

num

frequency band width

1

octave band

3

third-octave band

Returns
(flulist, plist)
flulistarray of floats

Lower/upper band frequencies in plottable format.

plistarray of floats

Corresponding values in plottable format.

«  acoular.tools.barspectrum   ::   tools   ::   tprocess  »