T O P I C R E V I E W |
Steve_t |
Posted - 07/07/2005 : 09:05:02 AM Origin Version: 7.5 SR4 Operating System: Win XP SP2
Hello, I have the following problem. I have two data records (each has its time (x) and voltage (y)), which I want to lay on top of each other in one graph for comparison. Since the point of recording time of the two datasets is not exactly the same, do I have to probably shift the time axis of the one data record? How do I do this? Thanks in advance for the trouble.
Yours sincerely, Steffen Tegethoff |
2 L A T E S T R E P L I E S (Newest First) |
Steve_t |
Posted - 07/08/2005 : 05:46:22 AM Thanks, worked very well!
Have a nice weekend.
Bye, steffen |
easwar |
Posted - 07/07/2005 : 10:00:53 AM Hi Steffen,
There are multiple ways to do this: 1> You can graph both curves on a layer and then use the Analysis->Translate->Horizontal menu command to graphically shift the active curve to match the other one 2> You could write code to find a particular peak (or some such marker) in your data and then programmatically shift the X of one curve to match the Y
An easier way may be: -> Say your data is organized in Data1 worksheet in cols A(X), B(Y), C(X), D(Y) where A, C have the time for the signals 1 and 2 and B, D have the Y values. -> Graph both Y values. -> Bring up script window and type the command: Data1_c += 0.5 Data1_c -= 1.5 etc This will then add/subtract values from the X for the second curve by specified amount and then you can visually see in the graph and adjust the amount of shift till the curves overlap. You may need to refresh the graph to update the change.
Easwar OriginLab
Edited by - easwar on 07/07/2005 10:03:52 AM |
|
|