Save and Combine Graph

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
TKHO
Posts: 3
Joined: Sun Jan 12, 2014 11:02 pm

Save and Combine Graph

Unread post 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
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Save and Combine Graph

Unread post 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)
TKHO
Posts: 3
Joined: Sun Jan 12, 2014 11:02 pm

Re: Save and Combine Graph

Unread post 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
Last edited by TKHO on Wed Jan 15, 2014 12:39 am, edited 1 time in total.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Save and Combine Graph

Unread post 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)
TKHO
Posts: 3
Joined: Sun Jan 12, 2014 11:02 pm

Re: Save and Combine Graph

Unread post 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
Post Reply