added support for different gnuplot terminals