Calling gnuplot fails when sh is not bash
Ubuntu uses dash. When calling gnuplot
from popen
the shell used is /bin/sh
which links to dash on Ubuntu (POSIX compliant shell). CentOS uses
bash(none POSIX compliant. the
gnplotcall fails over a wrongly place bracket
)`