Python繪制帶誤差線的圖形 Python plots with error bands
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.
如果您想繪制帶有誤差的多參數(shù)函數(shù)曲線,一種可視化誤差的方式是使用帶狀圖。
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.
帶狀圖類似于線圖,但不同的是,它不是顯示單條線,而是在線周圍顯示著色帶,以表示由于參數(shù)的不確定性而導(dǎo)致的函數(shù)不確定性。該帶通常由在參數(shù)值范圍內(nèi)繪制函數(shù)而定義,這些參數(shù)值跨越其不確定性范圍。
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.
這將生成一個(gè)包含函數(shù)曲線和代表參數(shù)不確定性誤差的帶狀區(qū)域的圖表。帶狀區(qū)域的大小反映了不確定性的大小。

原作者:本人
————————————————
版權(quán)聲明:本文為CSDN博主「Agent_Cristo」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/weixin_42803383/article/details/129891968