我有两个文件,它们的x轴是时间,y轴是数值。我需要将这两个文件叠加在同一个图中。目前我尝试使用GNUplot,但卡在了中间。以下是一个样本文件:
01:03:05 6
01:03:15 6
还有另一个文件
01:03:55 6
01:04:10 6
我需要在同一张图中绘制这两个文件(用不同的符号区分),与GNUplot相关。我不知道是否可以实现。目前我为每个文件创建了两个网格。但我需要它们都在同一张图中。以下是我的代码:
set multiplot layout 1,2 # engage multiplot mode
set xdata time ## these three lines control how gnuplot
set timefmt '%H:%M:%S' ## reads and writes time-formatted data.
set format x '%H:%M:%S' ##
set xtics 05 # make time spacing of 2 minutes
plot 'AAA' u 1:2 # plot the first data set
plot 'BBB' u 1:2 # plot the second data set
unset multiplot
有没有熟悉GNUplot或其他在Linux上工作的工具的人可以帮我?
set origin
和set size
(或者替代选项set lmargin at screen ...
,set rmargin at screen ...
等)进行调整 - 虽然,在这里我会选择第一种选项... - mgilson