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
 All Forums
 Origin Forum
 Origin Forum
 shifting one time-axis

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000