gnuplot can set different sample ratio for different functions