pysp2.vis.plot_wave#

pysp2.vis.plot_wave(ds, record_no, chn, plot_fit=True, append_to_display=False, init_kwargs=None, **kwargs)[source]#

Plots the raw waveform for a given record_no and channel.

Parameters:
  • ds (xarray Dataset) – The dataset to plot the waveform from.

  • record_no (int) – The record number to plot.

  • chn (int) – The channel to plot.

  • plot_fit (bool) – Set to True to plot the gaussian fit. Only used for channels 0 and 4.

  • append_to_display (False or ACT HistogramDisplay object) – Default is False. Give an existing ACT HistogramDisplay object to append to instead of creating a new one. init_kwargs does not work for an existing display object.

  • init_kwargs (dict) – Dictionary of keyword arguments to pass into initialization of act.plotting.display.HistogramDisplay() object

  • kwargs – Additional keyword arguments are passed into matplotlib.pyplot.step()

Returns:

display (ACT HistogramDisplay object) – Returns the ACT