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
 Is there a way to Stack on Y-Yplot?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ccu

7 Posts

Posted - 07/05/2011 :  07:54:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver8.51 and Service Release 2(Select Help-->About Origin):

For data on the same layer there's a stack function:
http://originlab.com/index.aspx?go=Products/Origin/Graphing/2D&pid=1067

I wonder is there a way to 'Stack' the data on Y-Y plot:


The upper graph is the auto setting from Origin and the data are overlapped. In the lower one the axis is manually rescaled. It would be good if there's a way to do it automatically.

Hideo Fujii

USA
1582 Posts

Posted - 07/05/2011 :  10:48:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If you want to stack two double-Y graphs into one graph, you can first create two individual Double-Y graphs, then you can merge them by choosing "Graph: Merge Graph Windows" menu. Then, you can set the Number of Rows to 2, and Number of Columns to 1 at the Arrange Settings" option branch. After merging, double-click one of the plots to show Plot Details dialog. Then, choose Layer3 in the left panel of the dialog, go to "Link Axes Scales" tab, and link this Layer3 to Layer1, and change the "X Axis Link" to "Straight (1 to 1)" so that the Layer 3 has the same X scale to Layer1/2; So the same steps for Layer4 to make all layers refer to the same X scale to Layer1.

If you simply want to widen the gap between two plots in a single double-Y graph, the following script lifts the 1st layer 10% up, and pulls the 2nd layer 10% down. Copy this script to the Script window, highlight all lines, and press ENTER key to run it; Or, you can make a button to run this script just by a single pressing.

//////////////////////
layer -s 1;
r1=(y2-y1)*0.1;
y1=y1+r1;
y2=y2+r1;
layer -s 2;
r2=(y2-y1)*0.1;
y1=y1-r2;
y2=y2-r2;
//////////////////////


--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 07/05/2011 1:45:33 PM
Go to Top of Page

ccu

7 Posts

Posted - 07/06/2011 :  03:29:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo Thanks a lot for your detailed response! I have already known your first method and more interested in the second one. To further this question, can we do the effect on the following graph in Origin? I hope there's a function in Origin to stack and arrange YYplot (both plot and axis) automatically so that they don't overlap.

Edited by - ccu on 07/06/2011 03:30:37 AM
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 07/06/2011 :  10:22:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi ccu,

Since how far separated is a subjective judgement, I don't have the "automatic" solution,
but I suggest to utilize the feature of the "axis scroll bar".



You can grab the scroll bar (between the two green dots) at either axis left or right,
and move it up or down to shift the curve. To attach scroll bars to your double-Y graph,
here is the steps:

1) Press the Layer1 icon (small grey square " [1] ") to select the layer1.
2) Choose "Graph: Add Scroll Bar: Left" menu.
3) Press the Layer2 icon.
4) Choose "Graph: Add Scroll Bar: Right" menu.
5) Select either scroll bar, and scroll the bar up/down.

I hope you like this approach.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 07/06/2011 10:26:38 AM
Go to Top of Page

ccu

7 Posts

Posted - 07/08/2011 :  08:40:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
wow~that's a great tool. Thanks a lot Hideo!
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