plot_line_shaded

fiducia.pltDefaults.plot_line_shaded(xData, yData, yErrsPos, yErrsNeg=[], label='', **kwargs)[source]

Generate a line plot with shaded region representing y-error bars. Can be run multiple times before plt.show(), to plot multiple data sets on the same axes.

Parameters
  • xData (numpy.ndarray) – X-axis data to be plotted.

  • yData (numpy.ndarray) – Y-axis data to be plotted.

  • yErrsPos (numpy.ndarray) – Errors on yData.

  • yErrsPos – When errors on yData are asymmetric, these are the positive side errors.

  • yErrsNeg (numpy.ndarray) – When errors on yData are asymmetric, these are the negative side errors.

Notes

Examples