Revilo
Revilo

Reputation: 3

gnuplot functions undefined octave

I'm running octave on ubuntu xfce, trying to run a function to achieve the same as fill3 in matlab (not my own code) which uses:

__gnuplot_set__ parametric;

When the function is called, I get the error:

error: 'gnuplot_set parametric' undefined near line...

I'm fairly new to Octave/MatLab and have tried re-installing gnuplot to ensure it's up-to-date, set the graphics toolkit to gnuplot both within the function and through the command line as well as trying:

gnuplot_binary("/usr/bin/gnuplot");

Which I was under the impression essentially told Octave where to look for gnuplot related things (As I say, relative newbie here!)

Any help greatly appreciated, I need this to work for some coursework!

Upvotes: 0

Views: 579

Answers (1)

carandraug
carandraug

Reputation: 13091

The error is not that gnuplot itself is not found, that's working fine. The problem is that the Octave function __gnuplot_set__ no longer exists.

Whoever wrote your fill3 function made use of __gnuplot_set__. This was an undocumented private function, to be used by internals of Octave only (that's what a function that starts and ends with __ mean). That function no longer exists.

Upvotes: 2

Related Questions