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

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
thitchen Posted - 04/09/2012 : 05:28:26 AM
Origin Ver. and Service Release (Select Help-->About Origin): Ver8 SR0
Operating System: Win7 Professional

Hi.

I have some files with file names 0304ab.dat~0304yh.dat with alphabetic order.
Is there a way to draw 24 panels a page each cantaining a set of data from one file with the legend the name of that file?
Something like this but with 24 panels and legends:


Thank you,
-chen
4   L A T E S T    R E P L I E S    (Newest First)
thitchen Posted - 04/12/2012 : 10:56:35 PM
I found a code from this forum and that solves my problem. Thank you all the same.
http://www.originlab.com/forum/topic.asp?TOPIC_ID=5241
Kathy_Wang Posted - 04/09/2012 : 9:56:44 PM
When you have your 24 graphs generated, you can
1. Choose"Graph:Merge Graph Windows" to open the "Graph Manipulation:merge_graph" dialog.
2. Then go to the drop-down menu of "Merge", and from it, select "specified", then the panel right to "graph" turns from gray to white (i.e. from inactive to active), and in the "graph" panel, you may browse and select graphs in your project by clicking the button right to the panel.
To arrange your plots in the merged graph, go to "Arrange Settings" branch, and modify the arrange setting as you want.
And regarding the "plotxy", we were just showing an example of how to use the command because we do not know which columns you would like to plot. In your case
plotxy iy:=(col(A), col(B));
is correct. You may refer to our online help file about this command for further information:
http://www.originlab.com/www/helponline/Origin/en/Programming/mergedProjects/X-Function/X-Function/Plotxy.html


Kathy
Originlab
thitchen Posted - 04/09/2012 : 2:02:30 PM
Thanks, but where did I specify 24 panels each graph?
And in "plotxy iy:=(col(B), col(C));//select the column you want to plot by yourself", is it correct to write "plotxy iy:=(col(A), col(B));" instead? Since I only have 2 columns each file. I'm downloading the upgrades. I'm a newbie. Sorry I bothered you. Thanks again.

quote:
Originally posted by Kathy_Wang

Hi,
You may use the import wizard (Open from "File:Import:Import Wizard") to import all your files at once, in the file name options dialog, check the "Worksheet with filename" to set the worksheet name as file name.
Then go to the "Save Filters" dialog by keep clicking "next", and check for "Save filter" and then "Specify advanced filter options", again click "Next" and open the "advanced options" dialog. There paste the following code into the blank area for labtalk code:

plotxy iy:=(col(B), col(C));//select the column you want to plot by yourself
legendupdate mode:=7 custom:="@WS";

Then click "Finish" and all your files will be imported, and after each import, a graph with updated legend will be generated.
Then choose "Graph:Merge Graph Windows" to merge all 24 graphs and arrange them in the way you want.
Also, you are highly recommended to upgrade your origin version at least to Origin 8.0 SR 6, for upgrading, please go to the following link:
http://www.originlab.com/index.aspx?go=SUPPORT/ServiceReleases
Hope this information helps.


Kathy
Originlab

Kathy_Wang Posted - 04/09/2012 : 06:38:03 AM
Hi,
You may use the import wizard (Open from "File:Import:Import Wizard") to import all your files at once, in the file name options dialog, check the "Worksheet with filename" to set the worksheet name as file name.
Then go to the "Save Filters" dialog by keep clicking "next", and check for "Save filter" and then "Specify advanced filter options", again click "Next" and open the "advanced options" dialog. There paste the following code into the blank area for labtalk code:

plotxy iy:=(col(B), col(C));//select the column you want to plot by yourself
legendupdate mode:=7 custom:="@WS";

Then click "Finish" and all your files will be imported, and after each import, a graph with updated legend will be generated.
Then choose "Graph:Merge Graph Windows" to merge all 24 graphs and arrange them in the way you want.
Also, you are highly recommended to upgrade your origin version at least to Origin 8.0 SR 6, for upgrading, please go to the following link:
http://www.originlab.com/index.aspx?go=SUPPORT/ServiceReleases
Hope this information helps.


Kathy
Originlab

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