06-21-2018 02:33 AM
Dear all,
I wanted to plot the x-axis (time details) against yaxis (data). I cant seem to be able to plot them to X-Y graph.
My intention is to split the data into time and data then do some sorting work to plot my graphs. I have attached the data. I have successfully split the data into 2 parts.
Is it possible to plot with different colours for the measurement data range while keeping the timestamp?
Meaning 80 and above - one colour (Blue)
40 to 50 range - one colour (Green)
10 to 30 range - one colour (Red)
All should be plotted on the same graph eventually. I think only X-Y graph can do that right?
Solved! Go to Solution.
06-21-2018 03:16 AM
06-21-2018 03:41 AM
This the correct VI.
06-21-2018 03:48 AM
Dear Sir,
Yes that what i think.
But i am thinking of splitting or sorting the data into various threshold and to split them into different clusters before mapping them again into a x-Y plot. It is like entering different datasets (with each dataset, an assigned colour) and finally plotting on the X-Y together.
06-21-2018 04:01 AM
An example of the plot will be as attached.
I intend to split the whole data into multiple sections and treat them as different datasets and plot them on the same graph. The criteria of splitting is based on the range of the data values.that it falls in.
i think superimpose all the plots into one graph is one solution but not sure is it efficient for large datasets. There is also one problem i faced as one of the column is a timestamp data and i not sure how to plot them on a graph.
Thank you!
06-21-2018 04:09 AM - edited 06-21-2018 04:17 AM
Hi Joven,
most of your stuff can be done much simpler:
Now you need to convert the strings to numbers/timestamps, sort them according to your requirements and build plots from the sorted results. Then display your array of plots in your XY graph…
That's a nice task to learn several basic LabVIEW concepts like loops, autoindexing, conditions, clusters (for XY plots)!
06-21-2018 05:06 AM
Dear Sir,
Thanks for the advise. It helps greatly.
If let say i want to sort the data (in column 1) , but still want to remember the sorting sequence and apply to column 0. What are the various ways to do them efficiently?
Thank you!
06-21-2018 05:32 AM
Dear Sir,
I have figured out and sorted the array already. Will try the plotting of the graph using x-y graph.
Thank you!
06-21-2018 10:12 AM
Dear gerdw,
I have sort and split the datasets into 3 parts. I hope to plot them each with different colours on the same plot.
However the 1st column is a string with date time details and the other column is numerical value. What should I do to plot them out on a graph showing both time date details (x axis) and data (y axis) What graph should I use?
Thank you.
06-21-2018 01:19 PM