05-24-2012 03:45 AM
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 |
Solved! Go to Solution.
05-24-2012 03:55 AM
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.
05-24-2012 08:17 AM
You could try playing around with this example: error bars in XY plots
05-24-2012 11:15 AM
Thanks GerdW.
But I don't know what you are suggesting.
05-24-2012 11:16 AM
Thanks smercurio.
I played with that example before I even posted this, but couldn't get anywhere.
05-24-2012 12:48 PM
@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".
05-24-2012 02:08 PM
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.
05-24-2012 02:45 PM
I may not have attached the updated plot vi
05-24-2012 04:28 PM - edited 05-24-2012 04:28 PM
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.
05-24-2012 05:01 PM
I did exactly that, but the Y error bars are missing from the middle points: