iracema.plot

Data plotting utilities.

iracema.plot.line_plot(time_series, linewidth=1, alpha=0.9, figsize=None, **kwargs)[source]

Plot the time series using matplotlib. Line width and alpha values can be set as optional parameters.

iracema.plot.spectrogram(spec_ts, log=False, fmin=0.0, fmax=None, figsize=None, normalize=True, cmap='viridis')[source]

Plot the spectrogram of the audio signal.

iracema.plot.waveform_spectrogram(audio, spec_ts, log=False, rms=None, peak_envelope=None, fmin=0.0, fmax=None, figsize=None)[source]

Plot two graphs: the first one showing curves for the audio waveform, the rms and the peak_envelope; the second showing the spectrogram of the audio signal.

iracema.plot.waveform_spectrogram_pitch(audio, spec_ts, pitch, rms=None, peak_envelope=None, log=False, fmin=0.0, fmax=None, cmap='viridis', figsize=None)[source]

Plot two graphs: the first one showing curves for the audio waveform, the rms and the peak_envelope; the second showing the spectrogram of the audio signal and its fundamental frequency pitch.

iracema.plot.waveform_spectrogram_harmonics(audio, spec_ts, harmonics, rms=None, peak_envelope=None, log=False, fmin=0.0, fmax=None, normalize=True, cmap='viridis', figsize=None)[source]

Plot two graphs: the first one showing curves for the audio waveform, the rms and the peak_envelope; the second showing the spectrogram of the audio signal and its harmonics.

iracema.plot.waveform_and_notes(audio, notes, figsize=None)[source]

Plot waveform and note segments.

iracema.plot.waveform_trio(audio, rms=None, peak_envelope=None, figsize=None)[source]

Plot a graph showing curves for the audio waveform, the rms and the peak_envelope.

iracema.plot.waveform_trio_and_features(audio, rms=None, peak_envelope=None, features=(), figsize=None)[source]

Plot a graph showing curves for the audio waveform, the rms and the peak_envelope; followed by a series of graphs, one for each time-series in the tuple features.

iracema.plot.waveform_trio_features_and_points(audio, feature, point_list, rms=None, peak_envelope=None, figsize=None)[source]