[英]Set two y axes is gnuplot
I have 2 files with points 我有2个带分数的文件
C:\1.txt
C:\2.txt
I'm trying to plot both of them into the same plot. 我正在尝试将它们都绘制到同一图上。
set style line 1 lc rgb '#0060ad' lt 2 lw 2 pt 0 ps 1.5
plot 'C:\1.txt' with linespoints ls 1 , 'C:\2.txt' with linespoints ls 1
How to set 2 different y-axis range for them ([0:6000] and [0:150] for example)? 如何为它们设置2个不同的y轴范围(例如[0:6000]和[0:150])?
i've got it. 我懂了。
set yrange [0:6000]
set y2range [0:150]
set xrange [0:5]
set x2range [0:5]
set y2tics
plot 'C:\1.txt' axes x1y1 with lines , 'C:\2.txt' axes x2y2 with line
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.