第二坐标
默认有第二坐标。命令前x/y换成x2/y2。
#设置坐标y2
set xlabel "X"
set ylabel "Y"
set y2label "Y2"
#画图
plot "123.dat" u 1:2 w lp pt 5 lc rgbcolor "#2B60DE" axis x1y1 t "water",\
>"123.dat" t 1:3 w lp pt 7 lc rgbcolor "#F628717" axis x1y2 t "T"
#更改,
set ytics nomirror #去除第二坐标轴与第一的镜像
set y2tics #给出第二坐标系
replot
#选择坐标轴画栅格
set grid xtics y2tics #选择x与y2作为栅格参考
最好将 y1 和 y2 刻度数量一致保证栅格一致。
gnuplot坐标系统及标签
first
second
graph
screen
character
set label 1 '1' at 2,1
set label 2 '2' at second 2,1
set label 3 '3' at graph 0.2,0.5
set label 4 '4' at screen 0.2,0.5
set label 5 '5' at character 10,5
标签方式
center , left , right
set label "Hello red left" at 2, 0.4 left textcolor rgb "#FF0000"
箭头
待续