Page 1 of 1

Save and Combine Graph

Posted: Mon Jan 13, 2014 8:18 pm
by TKHO
Dear RATS forum users,

I run several programs sequentially and each time there is some graphs produced and saved in RGF format. Having run all the programs, I want to open these saved graphs and combine them into a single graph, arranged in specific number of rows and columns (like 3*2). I try “spgraph” but it does not work. Can anyone give me some hints about how to do in program? Many thanks.

TKHO
14,Jan.,2014

Re: Save and Combine Graph

Posted: Mon Jan 13, 2014 10:22 pm
by TomDoan
Something like this looks like what you want:

Code: Select all

spgraph(vfields=2,hfields=2)
spgraph(rgf="c:\rats\test1.rgf")
spgraph(rgf="c:\rats\test2.rgf")
spgraph(rgf="c:\rats\test3.rgf")
spgraph(rgf="c:\rats\test4.rgf")
spgraph(done)

Re: Save and Combine Graph

Posted: Mon Jan 13, 2014 11:18 pm
by TKHO
Dear Tom,

many thanks for your useful hints.
I tried that codes, with the corresponding changes in graph directory.
But it shows an error message below:
===============================================
## OP3. This Instruction Does Not Have An Option RGF
>>>>spgraph(rgf=<<<<
===============================================
Did I miss anything? Many thanks.

TKHO
14,Jan.,2014

Re: Save and Combine Graph

Posted: Tue Jan 14, 2014 7:56 am
by TomDoan
The RGF option on SPGRAPH was added with RATS 8.0 (http://www.estima.com/ratslatest.shtml - two lines from the bottom of the feature list)

Re: Save and Combine Graph

Posted: Wed Jan 15, 2014 12:39 am
by TKHO
Dear Tom,

I update my RATS to 8.0 and indeed it works pretty well with these codes.
Many thanks for your help which solves a problem that had troubled me for some days.

TKHO
16,Jan.,2014