sensortoolkit.plotting._errorbars.error_bars

error_bars(xdata, ydata, ax, n_xbins=8, plot_yerror=True, errorbar_color='k')[source]

Display error bars on a passed matplotlib axes plot instance.

Parameters
  • xdata (pandas Series) – Data plotted along the x-axis of the passed axes instance ‘ax’.

  • ydata (pandas Series) – Data plotted along the y-axis of the passed axes instance ‘ax’.

  • ax (matplotlib axes instance) – A scatter plot displaying measurement pairs along x and y axes.

  • n_xbins (int, optional) – The number of bins along the range of the xdata from which the error bars will be computed. This also equals the number of errorbars. Defaults to 8.

  • plot_yerror (bool, optional) – Plot error along the y-axis. Defaults to True.

  • errorbar_color (str, optional) – The color of the error bars. Defaults to ‘k’ (black).

Returns

None.