我使用set terminal epslatex颜色来生成.tex文件但是当我用它生成最终的.div文件而不是xlabel时,ylabel,xtics,ytics等都没有输出。我的代码是
set term epslatex color
set out "gnu1.tex"
set title "pip-latency-comparison"
set xlabel "Number of Hops"
set ylabel "Latency (sec)"
set xrange [1:6]
set yrange [0:450]
set key at 5.5,350
set termoption dashed
unset log
set xtic auto
set ytic auto
set style line 1 lt 2 lw 3 lc 7 pt 1
set style line 2 lw 3 lc 8 pt 2
set style line 3 lw 3 lc 5 pt 3
set style line 4 lw 3 lc 6 pt 5
plot "gnu1.dat" u 1:2 t "PIP" ls 1 w linespoints,\
"gnu1.dat" u 1:3 t "Flush" ls 2 w linespoints,\
"gnu1.dat" u 1:4 t "PSFQ" ls 3 w linespoints,\
"gnu1.dat" u 1:5 t "Fetch" ls 4 w linespoints
set output
和我的Latex文件
\documentclass{article}
\usepackage{graphicx}
\usepackage{color}
\begin{document}
\input{gnu1.tex}
\end{document}