02-03-2012 12:55 AM
Hi,
I need help plotting a graph.
The situation is .... I have data of speed against time. Data is like this : a truck runs at some speed until 10 o clock. Now the driver changes time of the speed vs. time tracking device back to 9 o clock. Now if I plot this data it becomes a invalid graph as between 9 - 10 I will be having two values for the speed.
I thought of a solution that when ever a time change occurs I will drop the speed to 0 and again start plotting the graph with next point on the scale of x axis with the new set time ...... Is this possible ?
Please help.
Thanks and regards
Anirudh
02-03-2012 10:51 AM
I am not understanding part of your question - Now the driver changes time of the speed vs. time tracking device back to 9 o clock
How does time go backwards to 9 o'clock?
02-06-2012 12:10 AM
Hi,
Its like ... Resetting the time to an earlier time... !! its was just an example. See.... generally u have continous data on x axis. like time.
and now if you reset the time to an earlier value now you have an overlap in the graph. So , i wanted to know that fi its possible to discontue the former x axis at the time reset and continue with the new time so that over laping wont happen.
I will upload some pics of the over lapped graph soon. That might help you to understand my problem.
Thanks and regards,
Anirudh
02-06-2012 04:43 AM
Hi,
Here is a photo of what I want to do with the graph.
Here as the values that i am mappinng on x axis are repeated the graph is not one to one. Now to make it look like a one to one i want to drop it zero at the first 6. the restart the scale after 6 as 5 and continue mapping. Is this possible ?? ??
Thanks and Regards,
Anirudh.
02-06-2012 05:40 AM
Hi,
Is this what you want?
02-06-2012 07:25 AM
You will have to take the x componenet of your data and compair it to the x component of the other set of data. You will have to remove the unwanted data from the first array where the time is greater than the start of the second array. Do not forget to remove the y data too. You will have to build one array of data and plot it if you want one line. If you do not mind having two lines then you could just plot each line after that and change the color on the second to match the first and you would not know that there where two different lines.