spinqick.helper_functions.plot_tools

Functions to help with plotting data output from averager functions and spinqickdata classes.

Functions

plot_decimated(iq_list, config[, plot_iq])

Plot output of acquire_decimated().

interpret_data_dcs(avgi, avgq[, data_dim])

Helper for evaluating NDAverager data.

interpret_data_psb(avgi, avgq[, data_dim, thresh])

Helper for evaluating NDAverager data from experiments that use a reference measurement.

plot2_psb_data(pnts, avgi, avgq[, psb, thresh, transpose])

Helper for plotting NDAverager data.

plot1_psb_data(pnts, avgi, avgq[, thresh])

Helper for plotting NDAverager data.

plot2_simple(xarray, yarray, data, timestamp[, cbar_label])

Basic 2D plot.

plot1_simple(xarray, data, timestamp[, dset_label, ...])

Basic 1D plot.

plot2_psb(sqd, x_gate, y_gate)

Plot psb data 2D plot.

plot1_psb(sqd, x_gate, **kwargs)

Plot psb data 1d plot.

Module Contents

spinqick.helper_functions.plot_tools.plot_decimated(iq_list, config, plot_iq=False)

Plot output of acquire_decimated().

spinqick.helper_functions.plot_tools.interpret_data_dcs(avgi, avgq, data_dim='2D')

Helper for evaluating NDAverager data.

spinqick.helper_functions.plot_tools.interpret_data_psb(avgi, avgq, data_dim='2D', thresh=None)

Helper for evaluating NDAverager data from experiments that use a reference measurement.

spinqick.helper_functions.plot_tools.plot2_psb_data(pnts, avgi, avgq, psb=True, thresh=None, transpose=True)

Helper for plotting NDAverager data.

spinqick.helper_functions.plot_tools.plot1_psb_data(pnts, avgi, avgq, thresh=None)

Helper for plotting NDAverager data.

spinqick.helper_functions.plot_tools.plot2_simple(xarray, yarray, data, timestamp, cbar_label='DCS conductance, arbs')

Basic 2D plot.

Parameters:
  • data (numpy.ndarray) – 2d array of data which matches the dimensions of xarray and yarray

  • xarray (numpy.ndarray)

  • yarray (numpy.ndarray)

  • timestamp (int)

  • cbar_label (str)

spinqick.helper_functions.plot_tools.plot1_simple(xarray, data, timestamp, dset_label=None, new_figure=True, **kwargs)

Basic 1D plot.

Parameters:
  • xarray (numpy.ndarray)

  • data (numpy.ndarray)

  • timestamp (int)

  • dset_label (str | None)

  • new_figure (bool)

spinqick.helper_functions.plot_tools.plot2_psb(sqd, x_gate, y_gate)

Plot psb data 2D plot.

Parameters:
  • sqd (spinqick.core.spinqick_data.PsbData) – the spinqick data object containing the data

  • x_gate (str) – the name of the swept x-axis parameter from the spinqick.axes dictionary.

  • y_gate (str) – the name of the swept y-axis parameter from the spinqick.axes dictionary.

spinqick.helper_functions.plot_tools.plot1_psb(sqd, x_gate, **kwargs)

Plot psb data 1d plot.

Parameters: