
看来这是一个错误,
matplotlib其中的
zorder参数
errorbar未正确传递到误差线的垂直线部分。
复制您的问题:
import matplotlib.pyplot as pltfig = plt.figure()ax = plt.gca()[ax.plot(rand(50),color='0.75') for j in range(122)];ax.errorbar(range(50),rand(50),yerr=.3*rand(50))plt.draw()
!错误栏失败 Hacky解决方法:
fig = plt.figure()ax = plt.gca()[ax.plot(rand(50),color='0.75',zorder=-32) for j in range(122)];ax.errorbar(range(50),rand(50),yerr=.3*rand(50))plt.draw()
作为问题报告给matploblib
https://github.com/matplotlib/matplotlib/issues/1622(现已打补丁并关闭)
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)