Errorbar subsampling
The parameter errorevery of Axes.errorbar can be used to draw error bars
only on a subset of data points. This is particularly useful if there are many
data points with similar errors.
import matplotlib.pyplot as plt
import numpy as np
# example data
x =
