简体   繁体   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?

I have to make 30 plots, each having two files.我必须制作 30 个地块,每个地块有两个文件。 File 1 = step-$iY and File 2 = step-$iX文件 1 = step-$iY 和文件 2 = step-$iX

I would also like to set the title by having a prompt ask me for the input.This is the code I have so far.我还想通过提示我输入来设置标题。这是我到目前为止的代码。 I am newish at writing scripts.我对编写脚本很陌生。

Additionally, I need to change the title " 0.84 " for each plot.此外,我需要为每个 plot 更改标题“ 0.84 ”。 So I am wondering if in the code I can have a prompt that ask for my input.所以我想知道在代码中是否可以有一个提示要求我输入。
Thanks in advance提前致谢

#!/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.

相关问题 Bash:我怎样才能像输入文件一样命名 gs 输出文件,但具有不同的文件扩展名? - Bash: How can I name gs output files like the input files, but with a different file extension? 如何创建一个bash脚本来判断给定文件夹中的文件是符号链接还是普通文件? - How can I make a bash script to tell if files in a give folder are symlinks or a normal files? 如何在 Bash 中的两个文本文件中按行随机分区? 示例 70% 和 30% - How can I randomly partition, by rows ,in two text file in Bash? Example 70% and 30% 从变量获取输入并以bash输出到文件 - Take input from variable and output to file in bash 如何修复此代码,该代码应匹配两个文件之间的字段,并从每个文件输出各种字段? (AWK) - How do I fix this code that should match fields between two files, and output various fields from each file? (awk) 如何在bash中将输入传递到输出? - How can I pass input to output in bash? Bash For-Loop:如何比较不同索引处的两个数组项? - Bash For-Loop: How to compare two array items at different indexes? 如何在 python3 中获取用户输入并将其用于 ffmpeg-python 文件 output 的文件名? - How can I take a user input in python3 and use it for the file name of ffmpeg-python file output? 为什么我不能在Bash For-loop中使用Unix Nohup? - Why can't I use Unix Nohup with Bash For-loop? Bash 循环使用两个输入文件作为列表 - Bash loop using two input files as lists
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM