Page 1 of 1

spgraph combining fields

Posted: Mon May 23, 2022 2:05 pm
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

Re: spgraph combining fields

Posted: Mon May 23, 2022 7:16 pm
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)

Re: spgraph combining fields

Posted: Tue May 24, 2022 12:57 am
by ac_1
Great - thanks!