0

这是我的代码:

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'

拜托,第三把斧头上没有显示数字..你有什么想法吗? 在此处输入图像描述

谢谢你。

4

1 回答 1

0

我怀疑这是您用来生成该图的实际脚本,因为第二个绘图命令的标题不匹配。除此之外,您实际上并没有在 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'

应该做的伎俩。

于 2012-11-27T19:28:27.047 回答