g = g_new ( ...) - Create a new gnuplot_object and its directory
The g_XYZ() functions allow Octave to create plots with Gnuplot. They
are little more than an Octave front-end to Gnuplot, but allow to do
anything Gnuplot can do directly from Octave. In addition, there are some
commodity functions (g_cmd() with struct arg, g_locate()) that allow to nest
one figure in another.
g_new() creates a temporary directory in which data and commands will be
stored in a gnuplot-readable format.
g_new accepts key, value pairs of arguments, which will be passed to g_set.
Typical usage:
g = g_new ()
g = g_data (g, "myChosenDataFileName", data, ...)
g = g_cmd (g, ,\
"plot 'myChosenDataFileName' with lines",...);
g_plot (g,);
DEMO: Run g_demo(), or see http://gnuplot.sourceforge.net/demo_4.1 on how to
do nice plots.
SEE ALSO: g_ez, g_delete, g_data, g_cmd, g_plot, g_set, g_locate.
TODO: an OO style of function call (see failed attempt at end of g_new code)