I am trying to run a function in octave from the command line. The function is currently run like so:
octave --silent --persist --eval \'functio
You need to select a proper graphics toolkit:
available_graphics_toolkits
ans =
{
[1,1] = fltk
[1,2] = gnuplot
}
The default is fltk which cannot write to file without displaying the plot. However, if you select gnuplot it will be able to write to file without displaying it first. In your file start with:
graphics_toolkit gnuplot