1.2.2 Error Bars

The following pair of plot styles allow datapoints to be plotted with errorbars indicating the uncertainties in either their vertical or horizontal positions:

Both of these plot styles take three columns of input data, the first two of which represent the $x$- and $y$-coordinates of the positions of each point, and the last of which represents the uncertainty in either the $x$- and $y$-coordinate. The plot style errorbars is an alias for yerrorbars. Additionally, the following plot style allows datapoints to be plotted with both horizontal and vertical errorbars:

This plot style takes four columns of data as input, the first two of which represent the $x$- and $y$-coordinates of the positions of each point, the third of which gives the uncertainty in the $x$-coordinate, and the last of which gives the uncertainty in the $y$-coordinate.

Each of the plot styles listed above has a corresponding partner which takes minimum and maximum limit in place of each uncertainty, equivalent to writing $5^{+2}_{-3}$ instead of $5\pm 2$, except that the limits of 2 and 7 should be given in place of $5-3$ and $5+2$:

The plot style errorrange is an alias of yerrorrange.

Corresponding plot styles also exist to plot data with errorbars along the $z$-axes of three-dimensional plots1: zerrorbars, zerrorrange, xzerrorbars, xzerrorrange, yzerrorbars, yzerrorrange, xyzerrorbars, xyzerrorrange.

Footnotes

  1. These plot styles are currently present for future expansion purposes only, as PyXPlot 0.8.0 cannot produce three-dimensional plots.