gnuplot shell-script for example

file name : gnuplot.sh

-----------------------------------

#! /bin/sh

#for FILE in *'result-time'; do
        gnuplot -persist << PLOT
        set xlabel "Samples";
        set ylabel "time(us)";
##In case for building an png-file ...
#        set term png;
#        set output "with-cpuload/gnu.png";
##In case for building an jpeg-file ...
#        set term jpeg;
#        set output "with-cpuload/gnu.jpeg";
#In case for building an eps-file ...
        set terminal postscript enhanced color solid eps 15;
        set output "with-cpuload/gnu.eps";
        plot "with-cpuload/unload_domain_sysresult-time"  with \
        linespoints,"with-cpuload/load_domain_sysresult-time"  with \
        linespoints, "with-cpuload/get_cpu_khz_sysresult-time" with \
        linespoints,"with-cpuload/suspend_domain_sysresult-time" with \
        linespoints,"with-cpuload/pass_event_sysresult-time" with \
        linespoints,"with-cpuload/write_scr_sysresult-time" with linespoints;
quit
PLOT
#done

------------------------

#! /bin/sh
#for FILE in *'result-time'; do
        gnuplot -persist << PLOT
        set xlabel "Samples";
        set ylabel "time(us)";
##In case for building an png-file ...
#        set term png;
#        set output "with-cpuload/gnu.png";
##In case for building an jpeg-file ...
#        set term jpeg;
#        set output "with-cpuload/gnu.jpeg";
#In case for building an eps-file ...
        set terminal postscript enhanced color solid eps 15;
        set output "with-cpuload/gnu.eps";
        plot "with-cpuload/unload_domain_sysresult-time"  with \
        linespoints,"with-cpuload/load_domain_sysresult-time"  with \
        linespoints, "with-cpuload/get_cpu_khz_sysresult-time" with \
        linespoints,"with-cpuload/suspend_domain_sysresult-time" with \
        linespoints,"with-cpuload/pass_event_sysresult-time" with \
        linespoints,"with-cpuload/write_scr_sysresult-time" with linespoints;
quit
PLOT
#done



你可能感兴趣的:(gnuplot shell-script for example)