Thursday, June 21, 2018

GNU Octave - unable to run gnuplot

While going thru the coursera machine learning course exercise, I ran into below issue. It wouldn't allow to run some of the exercise code. 

gnuplot> set terminal aqua enhanced title "Figure 1" size 560 420  font "*,6" dashlength 1
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

WARNING: Plotting with an 'unknown' terminal.
No output will be generated. Please select a terminal with 'set terminal'.

It's because we need to setup proper environment for it. Here is the quick solution -

>setenv("GNUTERM","qt")

Happy Learning!

No comments:

Post a Comment