2011年10月10日月曜日

gnuplotをシェルスクリプトで動かす

plot_cloudwater1.sh
#! /bin/tcsh -f
################################################
#plot cloudwater
################################################
read_file=output_data.dat
plot_file1=allarea_avcwc


gnuplot <<EOF
plot "${read_file}" using 1:10 with line title "${plot_file1}" linetype 2 linecolor rgbcolor "blue" linewidth 3
set title "${plot_file1}"
set xlabel "time step [h]"
set ylabel "[g/m2]"
set term postscript
set output "${plot_file1}.ps"
replot
! is comentout
EOF

ps2pdf ${plot_file1}.ps 1_${plot_file1}.pdf
rm ${plot_file1}.ps

0 件のコメント:

コメントを投稿