sidpy.viz.plot_utils.curve.plot_complex_spectra¶
- sidpy.viz.plot_utils.curve.plot_complex_spectra(map_stack, x_vec=None, num_comps=4, title=None, x_label='', y_label='', evenly_spaced=True, subtitle_prefix='Component', amp_units=None, stdevs=2, **kwargs)[source]¶
Plots the amplitude and phase components of the provided stack of complex valued spectrograms (2D images)
- Parameters:
map_stack (2D or 3D numpy complex matrices) – stack of complex valued 1D spectra arranged as [component, spectra] or 2D images arranged as - [component, row, col]
x_vec (1D array-like, optional, default=None) – If the data are spectra (1D) instead of spectrograms (2D), x_vec is the reference array against which
num_comps (int) – Number of images to plot
title (str, optional) – Title to plot above everything else
x_label (str, optional) – Label for x axis
y_label (str, optional) – Label for y axis
evenly_spaced (bool, optional. Default = True) – If True, images will be sampled evenly over the given dataset. Else, the first num_comps images will be plotted
subtitle_prefix (str, optional) – Prefix for the title over each image
amp_units (str, optional) – Units for amplitude
stdevs (int) – Number of standard deviations to consider for plotting
pyplot.plot() (**kwargs will be passed on either to plot_map() or)
- Return type:
fig, axes