- 论坛徽章:
- 0
|
MIL-47_CO2_298.15K_loading.txt 文件内容如下:
#Pressure Abs_loading Abs_Err Exc_loading Exc_Err
# (Pa) (mol/kg) +/- (mol/kg) +/-
1.0E1 0.0004868952 0.0001508493 0.0004868952 0.0001508493
4.0E1 0.0018245047 0.0001457677 0.0018245047 0.0001457677
1.0E2 0.0043820572 0.0004288044 0.0043820572 0.0004288044
4.0E2 0.0175660985 0.0010380052 0.0175660985 0.0010380052
1.0E3 0.0441992685 0.0023672615 0.0441992685 0.0023672615
4.0E3 0.1775734015 0.0047834183 0.1775734015 0.0047834183
1.0E4 0.4569890588 0.0119704193 0.4569890588 0.0119704193
4.0E4 1.9622311245 0.0836185865 1.9622311245 0.0836185865
1.0E5 5.0952356824 0.0792388980 5.0952356824 0.0792388980
2.0E5 7.6948640796 0.0576287088 7.6948640796 0.0576287088
5.0E5 9.8012905840 0.1125997504 9.8012905840 0.1125997504
1.0E6 10.7791628829 0.0600050636 10.7791628829 0.0600050636
我的gnuplot脚本如下:
set term pngcairo size 720,600 font 'arial,14'
# set fontpath '$HOME/.fonts'
set grid
set xlabel "Pressure (kPa)" font 'arial,18'
set ylabel "Loading (mmol/g)" font 'arial,18'
set output "MIL-47_CO2_298.15K_loading.png"
set border linewidth 1.5
set style line 1 linecolor rgb '#00ff00' linetype 1 linewidth 2 pointtype 7 pointsize 3 # --- green
plot "MIL-47_CO2_298.15K_loading.txt" using ($1/1000):2 with linespoints ls 1 title 'CO2'
运行gnuplot,能够正确地生成png图片,但是一旦将该脚本放在shell里执行,老是出现如下的错误
gnuplot> plot "MIL-47_CO2_298.15K_loading.txt" using (/1000):2 with linespoints ls 1 title "H2O.Tip5p"
^
line 0: invalid expression
对于$1指定的第1列数据,为什么无效了呢?
|
|