Mmhh, this doesn't solve the problem here.
The current text file output is the following (see below). Commenting
the line "set xrange [200068.225:201444.775]" results in a properly
labeled x-axis. But "unset xrange" does not prevent gretl from printing
this line.
Artur
<gnuplotout>
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
set xlabel 'tindex'
set xzeroaxis
set datafile missing "?"
set key left top
set xrange [200068.225:201444.775]
# start literal lines
set ylabel 'in percent'
set key bottom horizontal outside
set yrange[-11.4089 : 15.8523]
unset xrange
set style line 1 lc rgb 'blue'
set style line 2 lc rgb 'orange'
set style line 3 lc rgb "#B22222"
set style line 4 lc rgb 'black'
set style line 5 lc rgb "#228B22"
set style line 6 lc rgb "#1E90FF"
set style line 7 lc rgb "#808000"
set xdata time
set timefmt "%Y%m"
set format x "%Y%m"
# end literal lines
plot \
'-' using 1:($2) title "Overall" w lines , \
'-' using 1:($2) title "Energy" w lines , \
'-' using 1:($2) title "All excl energy" w lines , \
'-' using 1:($2) title "All excl energy+food" w lines
</gnuplotout>
On 27.02.2015 17:46, Allin Cottrell wrote:
On Fri, 27 Feb 2015, Artur T. wrote:
> Nothing has changed after the update to latest cvs. The gnuplot
> version is "gnuplot 4.6 patchlevel 1".
OK, now I see what's happening. Your gnuplot "literal block", {...},
includes "set xdata time", which changes the interpretation of the
values in the x column. But gretl has already written an x-range
specification into the plot file, and this is no longer valid after
the change of interpretation: the x-range is set to a window that
contains no data.
You can fix this by including "unset xrange;" in your literal block;
this will trash the specification that gretl set.
Allin