1

I am running octave 4.2.2 on centOs 6 , and I've encountered some issue plotting graphs:

error: graphics_toolkit: gnuplot version too old.

some questions on this site suggeted installing gnuplot version 4.4 instead of 4.2 (the centOs 6 default). I installed it and now I have 2 gnuplot apps under /usr/bin/ , gnuplot & gnuplot44. my question is, how to make octave to use gnuplot44 and not gnuplot ? I've tried the next steps:

octave:2> register_graphics_toolkit('gnuplot44')
octave:3> available_graphics_toolkits
ans = 
{
  [1,1] = gnuplot
  [1,2] = gnuplot44
}
octave:4> graphics_toolkit('gnuplot44')
error: feval: function '__init_gnuplot44__' not found
error: called from
    graphics_toolkit at line 91 column 5

I have also tried with full path and got the same result:

 octave:4> register_graphics_toolkit('/usr/bin/gnuplot44')
octave:5> available_graphics_toolkits
ans = 
{
  [1,1] = /usr/bin/gnuplot44
  [1,2] = gnuplot
  [1,3] = gnuplot44
}
octave:6> graphics_toolkit('/usr/bin/gnuplot44')
error: feval: function '__init_/usr/bin/gnuplot44__' not found
error: called from
    graphics_toolkit at line 91 column 5

How can I overcome this issue ?

1 Answer 1

1

You can use gnuplot_binary :

gnuplot_binary('gnuplot44');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.