sidpy.viz.plot_utils.curve.plot_curves¶
- sidpy.viz.plot_utils.curve.plot_curves(excit_wfms, datasets, line_colors=[], dataset_names=[], evenly_spaced=True, num_plots=25, x_label='', y_label='', subtitle_prefix='Position', title='', use_rainbow_plots=False, fig_title_yoffset=1.05, h5_pos=None, **kwargs)[source]¶
Plots curves / spectras from multiple datasets from up to 25 evenly spaced positions :param excit_wfms: Excitation waveform in the time domain :type excit_wfms: 1D numpy float array or list of same :param datasets: Datasets containing data arranged as (pixel, time) :type datasets: list of 2D numpy arrays or 2D hyp5.Dataset objects :param line_colors: Colors to be used for each of the datasets :type line_colors: list of strings :param dataset_names: Names of the different datasets to be compared :type dataset_names: (Optional) list of strings :param evenly_spaced: Evenly spaced positions or first N positions :type evenly_spaced: boolean :param num_plots: Number of plots :type num_plots: unsigned int :param x_label: X Label for all plots :type x_label: (optional) String :param y_label: Y label for all plots :type y_label: (optional) String :param subtitle_prefix: prefix for title over each plot :type subtitle_prefix: (optional) String :param title: Main plot title :type title: (optional) String :param use_rainbow_plots: Plot the lines as a function of spectral index (eg. time) :type use_rainbow_plots: (optional) Boolean :param fig_title_yoffset: Y offset for the figure title. Value should be around 1 :type fig_title_yoffset: (optional) float :param h5_pos: Dataset containing position indices :type h5_pos: HDF5 dataset reference or 2D numpy array
- Return type:
fig, axes