Ordering the Plots

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Ordering the Plots

Postby Tartaglia » Fri May 28, 2010 12:00 pm

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
Tartaglia
 
Posts: 10
Joined: Mon Dec 07, 2009 1:19 am

Re: Ordering the Plots

Postby coot » Sun May 30, 2010 6:36 am

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
coot
 
Posts: 24
Joined: Tue Apr 20, 2010 10:54 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests