On Tue, 7 Aug 2012, Logan Kelly wrote:
Here is the IRFplot function I wrote it works badly when pdf
is replaced by png, but gives this error when the pdf
terminal is used:
Couldn't recognize the image file format for file
'C:\Users\w3071048\AppData\Roaming\gretl\gretltmp.png'
function void IRFplot(matrix response, string graph_title, string output_file)
[...]
outfile "@tmpfile" --write
printf "set term pdf font \"Sans,5\" size 275,200\n"
[...]
outfile "@tmpfile" --close
gnuplot --input="@tmpfile" --output=display
gnuplot --input="@tmpfile" --output="@output_file"
The second-last line is the problem: gretl's --output=display
option for the "gnuplot" command only works for PNG files. We
grab the PNG and render it into a a gretl-controlled window.
If you drop that line the output to file should be OK.
Allin Cottrell