Errorbar function This exhibits the most basic use of the error bar method. In this case, constant values are provided for the error in both the x- and y-directions. import matplotlib.pyplot as plt import numpy as np # example data x = np.arange(0.1