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
 Multiple normalizing/plotting/exporting

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
OriginHenni Posted - 01/05/2007 : 08:57:36 AM
Origin Version (Select Help-->About Origin): 6
Operating System:XP

Hi,

I'm unsuccessfully trying to solve the following task:

1. Normalize Column B in each worksheet of the project
2. Plot Colums A and B of each worksheet with a certain template
3. Export every plot in png-file

I would be very happy if someone could help me...

Hendrik

2   L A T E S T    R E P L I E S    (Newest First)
OriginHenni Posted - 01/07/2007 : 10:09:15 AM
Hi Mike,

thank you very much for your help. That saved a lot of time...

Hendrik
Mike Buess Posted - 01/05/2007 : 10:26:25 AM
Hi Hendrik,

Use the following script with the proper norm, imageDirectory and templateName.

norm = 2; // normalization factor
%B = imageDirectory\; // image directory (must end with \)
doc -e W {
if( exist(%H_B,1) ) {
%W=%H;
%W_B /= norm; // normalize column B
win -t P templateName; // create graph window from named template
lay -i201 %W_B; // plot column B as scatter (see worksheet -p command for plot IDs)
lay -a; // rescale
export.image(%B%H.png,PNG); // export to PNG (file name = graph name)
};
};

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/05/2007 10:30:06 AM

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