Matplotlib Errorbar Caps Missing

后端 未结 3 1814
你的背包
你的背包 2020-12-01 15:54

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         


        
3条回答
  •  一向
    一向 (楼主)
    2020-12-01 16:29

    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.

提交回复
热议问题