Save and Combine Graph
Save and Combine Graph
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
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
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
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
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
Last edited by TKHO on Wed Jan 15, 2014 12:39 am, edited 1 time in total.
Re: Save and Combine Graph
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
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
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