Dear all,
I know this is not the gnuplot forum but I hope that somebody knows how
to solve this using gretl + gnuplot (v. 5 patchlevel 5).
I want to plot a stacked barplot over time by providing the matrix 'mat'
(rows=Time, cols=variables) and a vector 'xmat'. xmat is based on the
$obsdate command holding daily dates in the format YYYYMMDD. My
objective is to handle date strings on the x-axis correctly. But this
drives me nuts...
As you will see, for the moment I deactivated everything related to time
and its formatting. I also took Jack's function for plotting the
historical decomposition based on the SVAR package as a role model but
somehow this doesn't work for me.
I attached the function plus an example which results in the error:
<gnuplot>
plot '-' using 1:($2), '-' using 1:($2)
^
"/home/at/.gretl/gpttmp.DjR2By", line 25: Too many columns in using
specification
*** error in function stackplot, line 70
</gnuplot>
Btw, do we have a function by retrieving the seconds since the Unix
epoch (1970-01-01, 00:00 UTC). I am just curious as gnuplot can handle
this time format
(
http://www.phy.ntnu.edu.tw/demolab/html.php?html=doc/gnuplot-doc/html/tim...).
Thanks in advance,
Artur