newbie question, table output



I tried the following to get a table with data of a function called gain:
plot2d([gain(4)],[omega,0.01,10000],[y,0.8,1.3],[GNUPLOT_PREAMBLE, "set log x"],[GNUPLOT_OUT_FILE, "test_data"], [GNUPLOT_TERM, table]);

As the terminal type table is not supported from within maxima, I suppose 
it is in fact unnecessary and there may be a more efficient approach to 
obtain the same result.

Can anyone suggest here how?

regards,
hugo