Different ways of specifying error bars
Errors can be specified as a constant value (as shown in Errorbar function). However, this example demonstrates how they vary by specifying arrays of error values.
If the raw x and y data have length N, there are two options:
- Array of shape (N,):
Error varies for each point, but the error values are symmetric (i.e. the lower and upper values are equal).
- Array of shape (2, N):
Error varies for each point, and the lower and upper limits (in that order) are different (asymmetric case)
In addition, this example demonstrates how to use log scale with error bars.
import matplotlib.pyplot
