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
 Arrangement of plots with LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

CStorey

Canada
137 Posts

Posted - 03/08/2000 :  5:59:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I create a series of 10 graphs, 1-2 layers per graph, with a script and then merge them, also with a script. The problem is the plots don't arrange themselves in the proper order (proper=order of creation), and there seems to be no reason for the order in which they appear. Here's the code I use to merge the plots:

Top=5; Bottom=8; Left=8; Right=5; xgap=8;
win -m;
nColumn=((int(sqrt(page.nlayers)))^2==page.nlayers?sqrt(page.nlayers) int(sqrt(page.nlayers))*(int(sqrt(page.nlayers))+1)>=page.nlayers?int(sqrt(page.nlayers)):int(sqrt(page.nlaye rs))+1));
nRow=((int(sqrt(page.nlayers)))^2==page.nlayers?sqrt(page.nlayers):int(sqrt(page.nlayers))+1);

CheckVar nRow 2;
CheckVar nColumn 1;

CheckMargins;
ArrangeLayers nRow nColumn;

This code is just ported from the Merge:Open menu. How do layers get added with the merge command? Is it alphabetically, in order of creation or in order of modification? If I new this then I could better address the problem. Also if anyone has a better scripting suggestion please let me know.

Thanks,
Craig

[This message has been edited by CStorey (edited 03-08-2000).]

greg

USA
1380 Posts

Posted - 03/10/2000 :  8:58:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
FYI:

The Layers are created from the Graphs in the order in which the Graphs were created (earliest to latest).

When merged to one row, the Layers add left to right.

When merged to one column, the Layers are added bottom to top.

When merged to rows and columns, the Layers are added in 'book' order - left to right, then top to bottom.
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