这是我的代码:
set title "courbe"
set xlabel "first"
set ylabel "second"
set y2label "third"
plot "File.txt" using 1:2 with linespoints tit 'first', "File.txt" using 1:3 with linespoints tit 'second', "File.txt" using 1:4 with points tit 'third'
请,第三把斧头不显示在斧头上的数字..have你一个想法好吗?
谢谢。
发布于 2012-11-28 03:28:27
我怀疑这是您用来生成该图的实际脚本,因为第二个plot命令的标题不匹配。除此之外,您实际上并没有在y2轴上绘制任何内容。要将某些东西放在y2轴上,您需要显式指定(例如axes x1y2
)。类似于:
set title "courbe"
set xlabel "first"
set ylabel "second"
set y2label "third"
plot "File.txt" using 1:2 with linespoints title 'first',\
"File.txt" using 1:3 with linespoints title 'second', \
"File.txt" axes x1y2 using 1:4 with points title 'third'
应该能行得通。
https://stackoverflow.com/questions/13589303
复制相似问题