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 |
|
|