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
 Using plotvm on multiple sheets after ascii import

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
PaulHe Posted - 04/09/2019 : 09:33:31 AM
I am trying to import multiple ascii files into separate sheets and plot a contour graph of all of them. If I execute the plotvm function as follows after import of each file, it always plots the first file:

plotvm irng:=1! format:=xacross rowpos:=selrow1 colpos:=selcol1

I tried to execute a loop after importing all files (here for 30 sheets):

loop(ii,1,30) {
page.active = ii;
plotvm irng:=ii! format:=xacross rowpos:=selrow1 colpos:=selcol1
}

But it does not work. Putting irng:=ii of irng:=<active> also does not work. How can I pass the active worksheet to be plotted to the plotvm function?

Thank you!
2   L A T E S T    R E P L I E S    (Newest First)
PaulHe Posted - 04/25/2019 : 11:28:10 AM
Thank you, this works perfect!

Regards,
Paul
yuki_wu Posted - 04/10/2019 : 02:46:08 AM
Hi,

Please try this:

int nsheets = 1;
doc -e LW {
	plotvm irng:=[%H]$(nsheets)! format:=xacross rowpos:=selrow1 colpos:=selcol1;
	nsheets++;
}


https://www.originlab.com/doc/LabTalk/guide/Looping-Over-objs#Looping_over_Workbooks_and_Worksheets

https://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects

Regards,
Yuki
OriginLab

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