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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Multiple normalizing/plotting/exporting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

OriginHenni

Germany
Posts

Posted - 01/05/2007 :  08:57:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 01/05/2007 :  10:26:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

OriginHenni

Germany
Posts

Posted - 01/07/2007 :  10:09:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

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

Hendrik
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000