Dear Chiara,
The function arguments as you supply them do not correspond with the definition. Compare the documentation http://www.nuff.ox.ac.uk/Users/Doornik/doc/ox/oxdraw.html#DrawTMatrix . The year of first observation should be the 4th argument. Between the var and varname you include an additional 'name', which should not be there.
Regards,
Jaap
> -----Original Message-----
> From: The ox-users list is aimed at all Ox users
> [mailto:[log in to unmask]]On Behalf Of Chiara Osbat
> Sent: Tuesday, 20 July, 2004 18:58
> To: [log in to unmask]
> Subject: Problem with OX DrawTMatrix() function
>
>
> Dear OX-users,
>
> i have a problem with the drawTmatrix() Ox function. I have
> incorporated it
> in a small function (see below) which plots many charts on
> the same page.
> The problem lies with the function:
>
> DrawTMatrix(c, var',name, varname, 1980, 1,4);
>
> as the X-axis on the charts starts at 2050 instead of 1980. I
> have tried
> all sorts of tricks, but i can never get it to start "right".
>
> any help would be very appreciated!
>
> thanks a lot,
> chiara
>
>
> Graph(c, var, name,varname, STARTyear,period, freq, module )
> {
> SetDraw(SET_SYMBOL,2, 0, 0);
> decl count = c;
> if(c>=module)c = imod(c,module);
> DrawTMatrix(c, var',name, varname, 1980, 1,4);
> if(imod(c+1,module) == 0)
> {
> ++count;
> SetDrawWindow(varname~sprint(count/module));
> SaveDrawWindow("./Charts/"~varname~sprint(count/module)~".gwg");
> ShowDrawWindow();
>
> }
>
|