我决定迁移到最新版本的gnuplot,从4.4到4.6 我遇到了x标签随版本4.6消失的问题,但版本为4.4。Gnuplot 4.6 xtics标签消失
这里是我的脚本的精简版本。
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 grid
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"
01/01/2013-00:15 186557
01/01/2013-01:15 254654
01/01/2013-04:00 180146
01/01/2013-06:15 191059
e
set key inside
我已经确定的问题,以这条线
set xtics rotate by 90 offset 0,-5
因为我的标签太长偏移使得它走
如果去掉偏移
set xtics rotate by 90
不是标签显示,而是在图表中间。
版本4.4用于压缩图表,为标签留出空间。
我想我对gnuplot的知识是有限的。 任何人有想法?
感谢
顺便说一句,我提交的bug报告。我们会看看Ethan(或其他gnuplot开发人员之一是否同意这是一个错误 - 我最近的2个报告已被封闭为非bug)。你可以按照进度[这里](https://sourceforge.net/tracker/?func=detail&aid=3599407&group_id=2055&atid=102055) – mgilson