キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

how to plot error bars on XY Graph?

解決済み
解決策を見る

I want to create the following plot using XY Graph (and not the 2D Error Bar plot). Can someone help?

 

I can do this using the 2D Erro Bar plot, but I don't like it because it is very hard to manipulate the 2D Error Bar plot.

I can't even copy and paste the plot easily into MS PPT because 2D Error Bar plot is XControl (whatever that means).

 

 

X1 Y1 Err1 X2 Y2 Err2
1 2 0.8 1.5 6 0.7
2 4 0.8 2.5 8 0.7
3 6 0.8 3.5 10 0.7

 

Untitled.jpg

0 件の賞賛
メッセージ1/17
9,574件の閲覧回数

Hi murchak,

 

you could simulate the ErrorPlot by creating several plots in the XY-graph.

 

- Create a plot for each error bar

- Create a plot for all error bars of one "Y"-plot, separate the individual error bars by "NaN" to avoid the connecting line between them.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ2/17
9,571件の閲覧回数

You could try playing around with this example: error bars in XY plots

0 件の賞賛
メッセージ3/17
9,559件の閲覧回数

Thanks GerdW.

 

But I don't know what you are suggesting.

0 件の賞賛
メッセージ4/17
9,548件の閲覧回数

Thanks smercurio.

 

 

I played with that example before I even posted this, but couldn't get anywhere.

0 件の賞賛
メッセージ5/17
9,547件の閲覧回数

@murchak wrote:

Thanks smercurio.

 

 

I played with that example before I even posted this, but couldn't get anywhere.


Then you should indicate what you have already tried, what worked and what didn't work, or what doesn't meet your needs. This way we don't waste our time hunting down possible solutions which you've already eliminated.

 

Define "couldn't get anywhere".

0 件の賞賛
メッセージ6/17
9,542件の閲覧回数

Hi smercurio,

 

Please open up my VI to see what the problem is. Error bars from some points are missing, and colors are a little messed, which I think I can fix, but I have to get the first part right.

 

I have the main VI, and my raw data in two text files (file 1 and file 2).

 

I also wanted to attach the sub-vi from your link (which I am using in my VI, I had already download this), but I can only have three attachments.

すべてをダウンロード
0 件の賞賛
メッセージ7/17
9,536件の閲覧回数

I may not have attached the updated plot vi

0 件の賞賛
メッセージ8/17
9,531件の閲覧回数

You need to expand the legend on the combined plot so that you set the point style on the additional plots (there are 4 plots).

 

You do not need to do any of that array manipulation inside the loop. All you need is a Build Array outside the loop.

 

0 件の賞賛
メッセージ9/17
9,523件の閲覧回数

I did exactly that, but the Y error bars are missing from the middle points:

 

Untitled.jpg

0 件の賞賛
メッセージ10/17
9,520件の閲覧回数