欢迎光临散文网 会员登陆 & 注册

Python绘制带误差线的图形 Python plots with error bands

2023-04-02 17:55 作者:AgentCristo  | 我要投稿

If you want to plot a function curve with multiple parameters with errors, one way to visualize the error is to use a band plot.


如果您想绘制带有误差的多参数函数曲线,一种可视化误差的方式是使用带状图。


A band plot is similar to a line plot, but instead of a single line, it shows a shaded band around the line to represent the uncertainty in the function due to the uncertainties in the parameters. The band is usually defined by plotting the function at a range of parameter values that span the range of their uncertainties.


带状图类似于线图,但不同的是,它不是显示单条线,而是在线周围显示着色带,以表示由于参数的不确定性而导致的函数不确定性。该带通常由在参数值范围内绘制函数而定义,这些参数值跨越其不确定性范围。


Here is an example using matplotlib:

This will produce a plot with the function curve and a shaded band representing the error due to the uncertainties in the parameters. The size of the band reflects the size of the uncertainties.


这将生成一个包含函数曲线和代表参数不确定性误差的带状区域的图表。带状区域的大小反映了不确定性的大小。


A simple function with error band

原作者:本人

————————————————

版权声明:本文为CSDN博主「Agent_Cristo」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/weixin_42803383/article/details/129891968


Python绘制带误差线的图形 Python plots with error bands的评论 (共 条)

分享到微博请遵守国家法律