fplot - plot a function table
fplot(table_number [, pause [, plot_commands ]])
Call fplot from a script to plot a function table to the screen. You can have either a crude ASCII plot or a high-resolution plot created by gnuplot.
If this argument is not present, draw the function table to stdout (normally the terminal window), using a crude ASCII plot.
If this argument is not present, plot with points.
makegen(1, 10, 1000, 1)
fills a table with one cycle of a sine wave.
fplot(1)
draws the table crudely to the terminal window:
----------\ -/ -\ -/ -\ -/ \ / -\ / \ -/ \ / -\ / \ / \ ------------------------------------------------------------------------------ \ - \ / \ / -\ / \ / \ -/ -\ / \ -/ -\ -/ -\ -/ ----------/
fplot(1, 10, "with lines")
calls gnuplot to draw the table with much higher resolution, displaying it in a window for 10 seconds, and connecting the points of the table with straight lines, if necessary.
You can use fplot any number of times in a script; each call to fplot generates a new window (if using gnuplot). Under Mac OS X, this doesn't work, so you can see only the most recent plot.
Under Mac OS X, you must install and configure gnuplot and Aquaterm for high-resolution plotting. Most Linux distributions come with gnuplot already installed.
The pause argument has no effect under Mac OS X -- just put anything there.
If something goes wrong with a gnuplot session, perhaps because of a syntax error, there may be some leftover files in the /tmp directory, with names like ``rtcmix_plot_data_xAb5x8.''