栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何使用Matplotlib强制错误栏渲染最后

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何使用Matplotlib强制错误栏渲染最后

看来这是一个错误,

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(现已打补丁并关闭)



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/636998.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号