Wolfram mathematica Mathemathica:如何绘制错误条?

Wolfram mathematica Mathemathica:如何绘制错误条?,wolfram-mathematica,Wolfram Mathematica,这是我的密码 chiSVB1gExp = Import["Bi2212OPT_B1g_100K.read", "Table"] chiSVB1g = Import["chiSV1g.dat", "Table"] ; ListPlot[{chiSVB1g[[All, {1, 2}]], chiSVB1gExp[[All, {1, 2}]]}] chiSVB1gExp和chiSVB1g都是三列文件,但我只想打印第二列作为第一列的函数。现在我只想为chiSVB1gExp添加一个错误条,它表示等于0.

这是我的密码

chiSVB1gExp = Import["Bi2212OPT_B1g_100K.read", "Table"]
chiSVB1g = Import["chiSV1g.dat", "Table"] ;
ListPlot[{chiSVB1g[[All, {1, 2}]], chiSVB1gExp[[All, {1, 2}]]}]
chiSVB1gExp
chiSVB1g
都是三列文件,但我只想打印第二列作为第一列的函数。现在我只想为
chiSVB1gExp
添加一个错误条,它表示等于0.1。我知道必须使用它
ErrorListPlot


Documentation center对我没有帮助,因为它只为简单的情况提供了示例。

您可以对集合使用零错误,而无错误:

Needs["ErrorBarPlots`"]

(* initial data sets *)
data1 = {{1, 1, 10}, {2, 2, 20}} ;
data2 = {{3, 3, 30}, {4, 4, 40}} ;

(* transformed sets : data3 without errors *)
data3 = {#[[1 ;; 2]], ErrorBar[{0.0, 0.0}]} & /@ data1 ;
data4 = {#[[1 ;; 2]], ErrorBar[{-0.1, 0.1}]} & /@ data2 ;

ErrorListPlot[{data3, data4}, AxesOrigin -> {0, 0}, 
 PlotStyle -> PointSize[0.01], PlotRange -> All]