| Author |
Topic  |
|
|
coll@inia.
Spain
125 Posts |
Posted - 07/16/2004 : 1:38:09 PM
|
I would like to paste the data into its corresponding graph by LabTalk script, to obtain both in the same page with printing purposes. I tried 2 procedures which work in Origin but without any automation: 1. To select the columns, copy and paste into the graph and then resize. I was only capable of resizing the pasted text by "text.fSize" 2. to use the Layout page. I got the page with "win -T layout layout" and even selected the graph with "dotool -pg graph1" or the data with "dotool -pw data1" but I was unable to progress any further with the automation. Could you give me any ideas as how to proceed, at least in one of the procedures mentioned above? Is there any another way to do it?. Thank you for your interest, sincerely, julio |
|
|
Mike Buess
USA
3037 Posts |
Posted - 07/16/2004 : 6:10:16 PM
|
Hi Julio,
1. The following script creates a label containing the first 6 rows of cols A and B in the worksheet Data1...
%W=Data1; %Z=A\tB; loop (i,1,6) { %Z=%Z $(%W_A[i])\t$(%W_B[i]); }; label -s -sa -n lbl %Z; // create label lbl.fsize=16; // change font size
2. Not much scripting can be done with the layout window. (I think you've discovered all the available commands.) You might look at the following approach which saves placeholders with the layout template and then renames actual windows to match...
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3070
I hope that helps.
Mike Buess Origin WebRing Member |
 |
|
|
coll@inia.
Spain
125 Posts |
Posted - 07/17/2004 : 3:55:55 PM
|
YES, IT HELPED!! Your second idea worked beautifully and without any further script. Briefly, I constructed the layout I required with one set of data which included an excel sheet converted to Origin, a Data1 originated from selected data from the excel and a graph made from the Data1. Then I removed all the particular data from the Data1, deleted the excel sheet for that particular experiment and save the rest as an *.opj (empty Data1 worksheet and Graph1 whitout any plotted data). When the *.opj is opened and the work is carried out by the particular script (means, lr, etc), automatically the layout is filled with all the required data and then printed. I may not explained well enough but it really works fine. Thank you again Mike (muchas gracias), bye now, julio |
 |
|
|
coll@inia.
Spain
125 Posts |
Posted - 07/18/2004 : 12:50:47 PM
|
Hi Mike, as it turns out the first script works also and is much more flexible in terms of sizing the resulting label. Thanks again, julio |
 |
|
| |
Topic  |
|
|
|