Skip to content
Snippets Groups Projects
Commit fec0b9c9 authored by James Goppert's avatar James Goppert
Browse files

Working on post processing script.

parent fb791fbc
No related branches found
No related tags found
No related merge requests found
#!/bin/tcsh #!/bin/bash
foreach file (*.csv)
if (-f data_plot/$file:r.xml) prep_plot $file --plot=data_plot/$file:r.xml | gnuplot # prepare plots from data
end for file in $(ls *.csv)
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf *.ps do
echo $file
if [ -f data_plot/$file:r.xml ]
then
echo preparing plot for: $file
prep_plot $file --plot=data_plot/$file:r.xml | gnuplot
fi
done
# convert ps to pdf
for file in $(ls *.ps)
do
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$file.pdf $file
done
# vim:ts=4:sw=4:expandtab
...@@ -198,10 +198,11 @@ int main(int argc, char **argv) ...@@ -198,10 +198,11 @@ int main(int argc, char **argv)
cout << "set size 1.0,1.0" << endl; cout << "set size 1.0,1.0" << endl;
cout << "set origin 0.0,0.0" << endl; cout << "set origin 0.0,0.0" << endl;
cout << "set lmargin 6" << endl; // the default margins work better
cout << "set rmargin 4" << endl; //cout << "set lmargin 6" << endl;
cout << "set tmargin 1" << endl; //cout << "set rmargin 4" << endl;
cout << "set bmargin 1" << endl; //cout << "set tmargin 1" << endl;
//cout << "set bmargin 1" << endl;
cout << "set datafile separator \",\"" << endl; cout << "set datafile separator \",\"" << endl;
cout << "set grid xtics ytics" << endl; cout << "set grid xtics ytics" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment