Menu

#17 lin/log errors for lin/log plot

open
nobody
None
5
2006-09-12
2006-09-12
No

thanks to florian, the error bars work now fine.
however, one has to adjust manually in the file whether
it is a linear or a logarithmic plot. to automate this
a little bit, one can use this somewhat unelegant
script (it has to be adjusted to the wups-file one
uses. the line _before_ the replacement has to be grep-ed):

if [ $# -eq 0 ]
then
read -p "please enter Ida-ps file(s) to convert: "
filename
else
filename="$@"
fi

for i in `ls $filename`
do
cat /home/sbusch/data/frida/wups05a.ps > temp.ps
cat $i >> temp.ps
read -p "error bars? (0/1) " errorbars
if [ $errorbars -eq 1 ]
then
read -p "lin(0) or log(1)? " linlog
if [ $linlog -eq 0 ]
then
exec <>temp.ps 1>&0
while read line
do
echo $line | grep -q "1 1 InfSet % plot fnam,
info %FK change both to 0 -> no comments" && echo -n "1
dup 1 SymGSet % slin srad serr(2=from pset) : graph
symbols, global preset"
done
elif [ $linlog -eq 1 ]
then
exec <>temp.ps 1>&0
while read line
do
echo $line | grep -q "1 1 InfSet % plot fnam,
info %FK change both to 0 -> no comments" && echo -n "1
dup 3 SymGSet % slin srad serr(2=from pset) : graph
symbols, global preset"
done
fi
fi
mv temp.ps $i
done

Discussion


Log in to post a comment.