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

adeodatoarthur

19 Posts

Posted - 07/03/2018 :  12:30:28 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear Origin Team,
I have to put all my curves at the same level. If you have a look at the atached image, you can see they are not starting at the same level. There is any tool in origin to make this ?
I am having too much work doing the mean of each line, crating a new colum on woorksheet and substracting the mean of all data.

Thanks a lot,
Arthur.

yuki_wu

896 Posts

Posted - 07/03/2018 :  10:32:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I am sorry that I could not understand your question fully.

What is the level you mean? Is it the starting point of the curve? Did you want to calculate the mean value for all the data in the graph?

Regards,
Yuki
OriginLab
Go to Top of Page

adeodatoarthur

19 Posts

Posted - 07/04/2018 :  7:18:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes you quiet right !
The level all curves supposed to be is at ZERO on y axis.
I want to bring all curves to start in zero then i can compare then !

Thanks a lot
Arthur
Go to Top of Page

yuki_wu

896 Posts

Posted - 07/04/2018 :  10:09:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Arthur,

You could use curve translate tool:
1. Make the graph active.
2. Select Analysis: Data Manipulation: Vertical Translate from Origin menu.
3. An anchor and a red line will be added to the active curve
4. Move the anchor to the start point
5. Click the triangle button to select Shift Curve from the context menu
6. Select Shift Curve to and enter 0 in the Value box
7. Click OK button

More info about the curve translate tool please refer to:
https://www.originlab.com/doc/Origin-Help/Translate-Curve

If you want to calculate the mean value of the curves, the Statistics Gadget could help:
https://www.originlab.com/doc/Origin-Help/Gadget-Statistics

Regards,
Yuki

OriginLab
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 07/05/2018 :  10:49:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Arthur,

If you are okay to do manually, you can follow the Yuki's way. If you want to do programmatically,
you can run the following simple script when the graph window is active.
/////////////////////////////////////////////////
layer -b s -2;           //if plots are grouped, and layer can have offset plots
doc -e DY {              //loop over plots
  range rp=%C;           //data range of the picked plot
  y_offset=-1*rp[1];     //Offset is the 1st value of the curve
  //y_offset=-1*min(rp); //if you want to set the minimum in curve as offset
  set %C -sy (y_offset); //if you want to set offsets without data change
  //rp=rp+y_offset;      //instead, if you want to update the source data
}
layer -ax;               //rescale Y axis
/////////////////////////////////////////////////
Note that this script works only when the plots are grouped, and won't change the original data,
but only presents plots with offset.

Hope this helps.

OriginLab

Edited by - Hideo Fujii on 07/05/2018 3:57:36 PM
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