Em 25 de outubro de 2012, Michael Boldin escreveu:

Suppose I have looped through N  time series variables and have N slope coefficients from a simple regression for each dependent variable  in a Nx1 matrix.
I now want to show these as y variables in a scatter plot for a given x variable -- in a different (and already constructed)  Nx1 matrix.  Can I easily do this ?

I tricked GRETL to plot 2 new series based on the matrices as so

scalar nn=rows(bx)
smpl 2001:01 2001:01+nn-1
series y= bx
series x= mx
chart1 <- gnuplot y x --with-lines

But I'd rather not trick gretl by creating series, when the matrix values are not actually time series.
(...)

Dear Michael,

Please try this code:

<hansl>
open australia.gdt

matrix matrix_PAU = PAU
matrix matrix_E = E

# Case 1: Plot using series
gnuplot PAU E --output=display

# Case 2: Plot using matrices
matrix matrix_series = matrix_PAU ~ matrix_E
gnuplot 1 2 --matrix=matrix_series --output=display
</hansl>

Best regards,
Henrique Andrade