spgraph combining fields

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
ac_1
Posts: 495
Joined: Thu Apr 15, 2010 6:30 am

spgraph combining fields

Unread post by ac_1 »

Hi Tom,

As in the Sample Graph https://estima.com/ratshelp/index.html? ... ction.html, can the fields be combined, e.g. is there a way to have 3 graphs differing in size:
1 in first column (all the way down), 2 in the 2nd column, or
1 in the first row (all the way across) and 2 in the 2nd row ?

thanks,
Amarjit
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: spgraph combining fields

Unread post by TomDoan »

You can nest SPGRAPH instructions to do that. (The right field in the outer SPGRAPH is a 2 vertical pane SPGRAPH):

Code: Select all

set x1 1 100 = %ran(1.0)
set x2 1 100 = %ran(1.0)
set x3 1 100 = %ran(1.0)
spgraph(hfields=2,vfields=1)
 graph
 # x1
 spgraph(hfields=1,vfields=2)
  graph 
  # x2
  graph
  # x3
 spgraph(done)
spgraph(done)
ac_1
Posts: 495
Joined: Thu Apr 15, 2010 6:30 am

Re: spgraph combining fields

Unread post by ac_1 »

Great - thanks!
Post Reply