10-23-2008 04:25 AM
hi my intention is to plot in a XY graph point by point. Meaning for eg: I want to plot a scatter plot.
First I check if the array element satisfies a certain condition (let's say if it lies between 1 to 5) if So I want to plot in red color, else I want to check another condition (let's say lies between 5 to 10) and then plot in blue color and so on.
First I check for the condition and link it to a case structure such that each case structure will contain the corresponding plot color but it doesnt seem to be working.
Kindly guide me with this.
thanks!!
Solved! Go to Solution.
10-23-2008 04:33 AM
Hi,
Post the VI so that i can provide you with a better solution.
10-23-2008 05:00 AM
Hi Chathuri,
If you want to plot a scatter plot, you can do this by editing the properties of the XY graph. Righ-click on the X-Y Graph object and click on Properties.This will bring up the property viewer. If you then go to the Plots tab, you should see a screen similar to the one shown as an attachement. The fourth column from the left sets the display type and if you click the top diagram, you will display individual data points. I have circled this in the attached diagram. You will also need to set the tick markers to display. You can do this if you set the third column from the left.
Hope this helps,
10-23-2008 11:10 PM - edited 10-23-2008 11:11 PM
Attached is an example of what I need to do. At the moment all the points are plotted in one color. I want it to be plotted in different colors depending on the conditions stated in the formula node
Thanks!!
10-24-2008 03:46 AM
Hi Chathuri,
I have attached a VI that shows how to display three different points each in different colours.There is a good example of XY graphs which may be of use to you in the NI Example finder; it is called "XY Graph.vi".
I hope this help,
10-24-2008 04:14 AM
Hi,
Thanks for your example. But unfortunately I cannot open the file as my LABVIEW version is 8.5. Is it possible for you to send me the VI in this version.
Thanks!!
10-24-2008 04:28 AM
Here you go, apologies for wrong version.
Thanks,
10-24-2008 04:38 AM
10-24-2008 04:58 AM
Hi,
Sorry its because of the default settings. I've updated the settings on this VI so it should work fine.
Thanks,
10-24-2008 06:19 AM
May I know how I can update an XY graph without deleting the previous plots.