Quantcast
Channel: Matplotlib Errorbar Caps Missing - Stack Overflow
Browsing latest articles
Browse All 5 View Live

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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Matplotlib 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

Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>