"minimal" script to produce the problem. (copied from -- http://stackoverflow.com/questions/14148342/gnuplot-4-6-xtics-label-disappear )
set key outside
set title "MY TITLE"
set timefmt "%m/%d/%Y-%H:%M:%S"
set format x "%m/%d %H:%M"
set xdata time
set ylabel "Y LABEL"
set xlabel "Time"
set xtics rotate by 90 offset 0,-5
set terminal pngcairo size 1000,500 font ",9"
set xtics font ",8.0"
set ytics font ",8.0"
set output 'test.png'
plot '-' using 1:2 with linespoints ti "legend"
The `xtic` labels don't appear on the plot with gnuplot 4.6.1 (or 4.7.0). The reason that I believe this is a bug is because if I inject a `set bmargin at screen 0.8` into the script before plotting, the xtics show up just fine and relative to the xlabel, a portion of the the xtics (labels) are clearly above the xlabel in the plot. However, without the `bmargin` line, no xtics show up at all, so their position relative to the xlabel seems to have changed. The position of the xlabel relative to the plot doesn't seem to have changed however.
Note that this behavior is not reproduced in the postscript terminal -- It seems to behave more or less as expected.
If it matters, this was tested on Ubuntu linux: (gnuplot build system Linux x86_64) -- Others report it "working" on gnuplot 4.4, although I don't have that version installed currently so I can't verify.
As an aside, is it inconvenient for you when I post the stackoverflow questions as a reference?
Log in to post a comment.