我在ubuntu12.04上运行gnuplot4.6.5,并使用x11终端。我按如下方式使用脚本,但是ylabel是不可见的(xlabel就可以了)。我要怎么做才能修复它?偏移?感谢你的帮助
plot "512bytesCBR3000client4server1numofnodes.txt" using 1:2 title 'NativeOF' with linespoints lw 2 ps 3 pt 6 lt 3
set grid
set ylabel "End to end delay"
set xlabel "number of nodes"
发布于 2014-09-04 10:17:53
通常,如果希望它们显示在绘图中,则必须在调用plot
之前完成所有设置(set xlabel
、set ylabel
、set grid
)。我不确定为什么set xlabel
可以为您工作,除非您在前面的绘图中设置它,或者在尝试从gnuplot命令行执行命令时设置它。
尝试将plot
命令移动到文件的末尾。
发布于 2019-09-15 19:23:41
有时,这可能与画布的边距有关。因此,使用边距设置可能是明智的,例如:
# other grid settings
set lmargin 10
set rmargin 10
set tmargin 5
set bmargin 5
# plot command
https://stackoverflow.com/questions/25655990
复制相似问题