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
 BUG in Vertical Translation?!!!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 02/28/2000 :  8:08:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi...

I'm using Origin 5 with SR 2 and have encountered the following problem. For horizontal translation I can translate all "grouped" curves at one go. For vertical translation, however, I could only do it one curve at a time. May I know how I can do a group vertical translation. Your assistance is urgently sought! Please email me your solution at jo@post1.com if possible. Thanks!

Jo.

hschaefer

Germany
3 Posts

Posted - 02/28/2000 :  8:00:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

maybe, I can do a close guess, what might happen, regarding your specific *problem*:

Do you have different x-columns or only one x with multiple y-datasets for your plot? Then, I assume, I could explain that behaviour: a horizontal translation will be based on Origin having to transform only one *single* dataset, the x-column, whereas all y-data depend on that x-column and now, all curves are shifted horizontally.

Yet, when trying a vertical translation for your grouped curves, then Origin would have to deal with transforming several, separate y-datasets/columns, now obvioulsy only moving the single curve of the active data-set!

... well, only a guess to make it plausible.

Might be necessary, to handle that case of vertical translation of grouped curves with a small script?

Hubert

Go to Top of Page

Laurie

USA
404 Posts

Posted - 03/01/2000 :  6:12:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, you explain correctly why Translate X works for grouped data but Translate Y does not.

Origin's analysis features act on the active dataset, which is why only the active dataset gets translated when you select Translate Y. However because Translate X modifies the X dataset, any associated Y dataset will become translated.

I have written a script that modifies the sections of code in the Granaly.ogs file that get executed when you select this menu item.

1. Open GRANALY.OGS in Notepad. (This file can be found in your Origin directory.)
2. Search for '[TransY]'.
3. Modify the script so that it looks like the following:

#Pick one pt as ref and move curve to a new pt vertically
// JMP for v5.0 05/29/97 USE_EXCHAGEXY_PROPERTY
%Z="";
count=0;
doc -e DY {
%Z=%Z %C;
count++;
}
if (layer.ExchangeXY)
run.section(,TransXAction);
else
run.section(,TransYAction);
return 0;

4. Modify the next section to look as follows:

[TransYAction]

def EndToolbox
{
y_last=y;;
def EndToolbox {
y-y_last;
loop(ii,1,count){
undo %[%Z,#ii];
%[%Z,#ii]+y;
}

};
GetPts -Y 1 (Move cursor to new location, hit ENTER)
};
Pick1pt;


This will now act on all datasets in the layer.

-----------
Laurie Shea
Microcal Technical Support

[This message has been edited by Laurie (edited 03-02-2000).]

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