Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用gnuplot绘制多个图形的Shell脚本_Shell_Tcp_Gnuplot - Fatal编程技术网

使用gnuplot绘制多个图形的Shell脚本

使用gnuplot绘制多个图形的Shell脚本,shell,tcp,gnuplot,Shell,Tcp,Gnuplot,我试图分析多个tcp拥塞控制算法,并试图绘制多个图,但我无法绘制一个比较图 这是我的脚本代码: gnuplot -persist <<"EOF" set xlabel "time (seconds)" set ylabel "Segments (cwnd, ssthresh)" plot "./cubic.out" using 1:7 title "snd_cwnd cubic", \ "./cubic.out" using 1:($8>=2147483647 ? 0 : $

我试图分析多个tcp拥塞控制算法,并试图绘制多个图,但我无法绘制一个比较图

这是我的脚本代码:

gnuplot -persist <<"EOF"
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
plot "./cubic.out" using 1:7 title "snd_cwnd cubic", \
 "./cubic.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh cubic",/
  "./reno.out" using 1:7 title "snd_cwnd reno", \
  "./reno.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh reno"
  ,/
EOF
gnuplot-persist=2147483647?0:$8)标题“snd_ssthresh reno”
,/
EOF
但该脚本将图形分为两个子部分(两个子部分都不是源代码)


感谢

遵循米格尔的建议,以下是您应该尝试的内容(请记住,要让
EOF
开始这一行,任何空格都会使它变得无关紧要):

gnuplot-persist=2147483647?0:$8)标题“snd_ssthresh reno”\
EOF

请您提供一张图片或数据,并更好地解释您将获得的成果和一些示例数据。正斜杠使您的代码不正确。连续换行符需要向后斜杠。
gnuplot -persist <<"EOF"
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
plot "./cubic.out" using 1:7 title "snd_cwnd cubic", \
 "./cubic.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh cubic", \
  "./reno.out" using 1:7 title "snd_cwnd reno", \
  "./reno.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh reno" , \
EOF