python - 在 matplotlib 2.1.0 上绘制平均值和标准差

标签 python python-3.x matplotlib

我需要绘制一个带有点和标准差的函数。 This post拥有我需要的一切,但我在 Python 3.4.3 上使用 matplotlib 2.1.0,它不会绘制标准差的上下线。我的意思是标准差线在其极值处没有水平线。有什么方法可以在我正在使用的 matplotlib 版本中绘制这些线吗?

最佳答案

调整函数的 capsize=capthick= 参数 errorbar()

关于python - 在 matplotlib 2.1.0 上绘制平均值和标准差,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46717251/

相关文章:

python - 在Python中对包含数字的字符串列表进行排序

python - 屏幕抓取表单结果

python - 如何在没有导入库的情况下获取python文件中的函数定义?

python - Matplotlib 饼图标签对齐

python - Imshow/Matshow 收缩轴内

python - 使用 python 和 BaseProcess 类进行多处理

Python lru_cache : how can currsize < misses < maxsize?

python - 几个测试的pytest参数化执行顺序

python - 将字符串转换为路径对象

python - 值错误 : could not convert string to float : bored