Page 1 of 1

Ordering the Plots

PostPosted: Fri May 28, 2010 12:00 pm
by Tartaglia
Hi everyone,

I have simple problem. I am trying to order the plots that my mod-file produces in a specific way, i.e. not 3x3 but 5x2 instead. Is there a way I can control for this in the mod-file. I was thinking of something like this at the end of the mod-file:

......

stoch_simul;

// subplots
rows = 5;
columns = 2;
for i = 1:rows*columns
subplot(rows,columns,i)
x1 = rand;
y1 = rand;
x2 = rand;
y2 = rand;
line([x1 y1],[x2 y2])
grid on
hold on
end

Thanks,
Tartaglia

Re: Ordering the Plots

PostPosted: Sun May 30, 2010 6:36 am
by coot
try setting in your model file before plots producing function

Code: Select all
options_.graphics
 nrows: 3
         ncols: 3
    line_types: {'b-'}
    line_width: 1


So you should write
Code: Select all
options_.graphics.nrows=2
options_.graphics.ncols=5