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
 plot "unknown" numbers of wks to existing graph

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
OndrejMM Posted - 10/20/2008 : 08:33:59 AM
Hi Guys,

Can you please help me with the following problem,... I’m importing “unknown” number of ASCII files with names book1, book2, book3 .... bookX (the number of books varies and I cannot predict how many of them I imported),... they all have only two columns A(X), B(Y),... and I have in the project one Graph and what I need to do is to plot all those "books" (book1, book2,...) two this graph window,... I was trying the following but doesn’t work:

doc -e W // loop over all worksheets
{
if( "%[%H,5]"=="book" ) // if worksheet name starts with Data
{
Graph!page.active=1;
Layer.include(%H_B, 200);
};
};

Thanks
Ondrej
2   L A T E S T    R E P L I E S    (Newest First)
OndrejMM Posted - 10/20/2008 : 6:44:05 PM
Hi Laurie,
cool! it works,... thanks, Ondrej
Laurie Posted - 10/20/2008 : 09:47:32 AM
range layer1 = [Graph1]1!; // use range notation to define a layer range
// loop over all worksheets
doc -e W
{
if( "%[%H,5]"=="book" ) // if worksheet name starts with Book
{
layer1.include(%H_B, 200);
}
}

Try the above code. Using range notation, it doesn't matter if the graph is active or not.

OriginLab Technical Support

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