Answer by heretoinfinity for Matplotlib Errorbar Caps Missing
The answers referring to markeredgewidth work. There's a new argument now that is more descpritive capthick for cap thickness. From the documentation of version 3.7.2 of matplotlib.capthick : float,...
View ArticleAnswer by aquirdturtle for Matplotlib Errorbar Caps Missing
Slight simplification of astromax's answer:plt.errorbar(x,y, yerr=err, capsize=20, elinewidth=3, markeredgewidth=10)It seems that somehow markeredgewidth is defaulting to 0 sometimes.
View ArticleAnswer by Lucho for Matplotlib Errorbar Caps Missing
It has to do with the rcParams in matplotlib. To solve it, add the following lines at the beginning of your script:import matplotlibmatplotlib.rcParams.update({'errorbar.capsize': 2})It also works with...
View ArticleAnswer by astromax for Matplotlib Errorbar Caps Missing
What worked for me was adding this (as per: How to set the line width of error bar caps, in matplotlib):(_, caps, _) = plt.errorbar(x,y, yerr=err, capsize=20, elinewidth=3)for cap in caps:...
View ArticleMatplotlib Errorbar Caps Missing
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 pltimport numpy as npimport randomx =...
View Article