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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Graph & Data in 1 page

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
coll@inia. 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
3   L A T E S T    R E P L I E S    (Newest First)
coll@inia. 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
coll@inia. 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
Mike Buess 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000