The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 shifting one time-axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Steve_t

Germany
Posts

Posted - 07/07/2005 :  09:05:02 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1965 Posts

Posted - 07/07/2005 :  10:00:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Steve_t

Germany
Posts

Posted - 07/08/2005 :  05:46:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, worked very well!


Have a nice weekend.

Bye,
steffen
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000