I\'m attempting to create a scatter plot with errorbars in matplotlib. The following is an example of what my code looks like:
import matplotlib.pyplot as pl
It has to do with the rcParams in matplotlib. To solve it, add the following lines at the beginning of your script:
import matplotlib matplotlib.rcParams.update({'errorbar.capsize': 2})
It also works with plt.bar().
plt.bar()