On Thu, 30 Oct 2014, Logan Kelly wrote:
I have had a similar problem. (I was not sure it is a problem so I
have not asked). When I try to compile a GNUPlot script in the
editor, I get lots of dings with no plot. However, if I save the
plot commands to a session icon and then right click the icon and
choose display it works like a charm.
Here is an example that will not compile (also I have attached the
data and session file). Note that if you leave the first line
commented out the script will compile, but ignores the change in
size.
The gnuplot script below looks fine, except that you're not specifying
where the output should go -- and by default the binary PNG bytes will
be spewed onto stdout, with results that probably won't be pretty.
After "set term pngcairo..." you should add something like
set output '/path/to/file.png'
or if you want to see the plot on-screen, select an interactive
terminal, e.g. "set term wxt" or "set term windows".
set term pngcairo font "verdana,8" size 400,400 noenhanced
set encoding utf8
set style line 1 lc rgb "#ff0000"
set style line 2 lc rgb "#0000ff"
set style line 3 lc rgb "#00cc00"
set style line 4 lc rgb "#bf25b2"
set style line 5 lc rgb "#8faab3"
set style line 6 lc rgb "#ffa500"
set style line 8 lc rgb "#dddddd"
set style increment user
# timeseries 12 (letterbox)
set xtics nomirror 0,1
set mxtics 12
set xlabel ''
set xzeroaxis
set datafile missing "?"
set ylabel 'Industrial Production'
set nokey
set xrange [2011.975:2013.025]
plot \
'-' using 1:($2) title "" w lines
2012 85.06
2012.083333 92.89
2012.166667 104.47
2012.25 101.21
2012.333333 105.46
2012.416667 99.98
2012.5 103.12
2012.583333 104.01
2012.666667 98.96
2012.75 102.36
2012.833333 100.23
2012.916667 98.37
2013 102.63
E
> -----Original Message-----
> From: gretl-users-bounces(a)lists.wfu.edu [mailto:gretl-users-
> bounces(a)lists.wfu.edu] On Behalf Of Allin Cottrell
> Sent: Thursday, October 30, 2014 5:43 PM
> To: Gretl list
> Subject: Re: [Gretl-users] Plot Commands Editor
>
> On Thu, 30 Oct 2014, Randy Kesselring wrote:
>
>> I am trying to edit some of the plot commands as described in the
>> manual. Specifically, I am trying to change the canvas size for
>> pngcairo from 640,480 (the default size) to 480,480 or some size close
>> to this. When I make the changes as described in the manual (at
>> least, as I interpret the manual) either nothing happens or I get
>> dinging bells (which I am sure indicate some kind of error).
>> Any suggestions would be greatly appreciated.
>
> Please post a copy of a plot file modified as you describe. I think this is the
> best if not the only way to diagnose the problem.
>
> If the plot file is very big (includes a lot of data) feel free to send it to me
off-
> list.