extend math.gnuplot a little bit