2012-10-11 2 views
0

Mathemathica : 오류 막대를 그립시키는 방법은 무엇입니까?

chiSVB1gExp = Import["Bi2212OPT_B1g_100K.read", "Table"] 
chiSVB1g = Import["chiSV1g.dat", "Table"] ; 
ListPlot[{chiSVB1g[[All, {1, 2}]], chiSVB1gExp[[All, {1, 2}]]}] 

chiSVB1gExpchiSVB1g 모두 세 열 파일,하지만 난이 첫 번째의 기능으로 만 두 번째 음모 원하는 내 코드입니다. 이제 나는 chiSVB1gExp에 대해서만 오류 표시 줄을 추가하고 싶습니다. 0.1이라고 말합니다. 나는 그것이 사용 되어야만한다는 것을 알고 있었다. ErrorListPlot.

문서 센터는 간단한 상황에서만 예제를 만들기 때문에 도움이되지 않습니다.

답변

0

당신은 오류없이 세트 제로 오류를 사용할 수 있습니다

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] 

enter image description here

관련 문제