繁体   English   中英

Gnuplot:如何修复此 bash 代码以获取两个输入文件并提供 SVG 格式的 output 文件作为 for-loop 制作 3

[英]Gnuplot: How can I fix this bash code to take two input files and give an output file in SVG format as a for-loop to make 30 plots?

我必须制作 30 个地块,每个地块有两个文件。 文件 1 = step-$iY 和文件 2 = step-$iX

我还想通过提示我输入来设置标题。这是我到目前为止的代码。 我对编写脚本很陌生。

此外,我需要为每个 plot 更改标题“ 0.84 ”。 所以我想知道在代码中是否可以有一个提示要求我输入。
提前致谢

#!/bin/bash

set termoption font 'Sans,22'

for f1 in ./

set border 15 front lt black linewidth 3.000 dashtype solid
set xrange [0:5.5]
set yrange[-5:0.1]
set xtic scale 0
set xtics ("O_{2}" 0.3, "O@^*_{2}" 1.3, "OOH^*" 2.3  , "O^*" 3.3, "OH^*" 4.3 ,"H_{2}O" 5.3 )
set ytics out nomirror
set xlabel "Reaction Coordinate"
set xlabel  font "{/:Bold,23}"
set ylabel "Free Energy (eV)"
set ylabel  font "{/:Bold,23}"
p "step-$iy" u 2:3 w l dt 4 lc rgb 'blue' notitle, "step-$ix" u 2:3 w l lw 3 lc rgb 'blue' title "{/:Bold 0 V}"
rep "step-$iy" u 4:5 w l dt 4 lc rgb 'red' notitle, "step-$ix" u 4:5 w l lw 3 lc rgb 'red' title "{/:Bold ***0.84*** V}"

 set output "step.svg"
}
done

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM