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
 Translate Vertical
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bry4ntwood

USA
Posts

Posted - 08/07/2007 :  10:14:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: WIN2000

Hi there,

I would like to use the Analysis -> Translate -> Vertical command but I need the translation to be multiplied by a constant as opposed to added by a constant. I realize I can use simple math, but for me, it would be so much easier to use the Translate feature.

Anyway I can modify this routine or create some kind of script? My data happens to be plotted on a log scale and translating by the addition of a constant changes the "shape" of the curve. I just want to be able to move the curve around for display purposes as the y values are arbitrary.

Thanks!

-nathan

Mike Buess

USA
3037 Posts

Posted - 08/08/2007 :  10:51:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Nathan,

Run this script from the Custom Routine button or a user-defined button...

def EndToolbox
{
y_last=y;;
def EndToolbox {y/y_last;undo %C;%C * y;};
GetPts -Y 1 (Move cursor to new location, hit ENTER)
};
GetPts 1 $EXEmessage.Pick1Pt;

Mike Buess
Origin WebRing Member
Go to Top of Page

bry4ntwood

USA
Posts

Posted - 08/08/2007 :  11:49:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That Worked Perfectly!!

Thanks Mike!

-Nathan
Go to Top of Page

carrie3335

USA
1 Posts

Posted - 11/03/2016 :  3:06:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello! This is fantastic. However, after you translate the curves, is there any way to see by how much they have been translated? Thank you!
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