Octave, gnuplot, and AquaTerm

来源:互联网 发布:北京交通大学校训知行 编辑:程序博客网 时间:2024/06/05 12:05
Today I decided to bring out octave again to work on some Numerical Computing problems.  I was encountering an issue I had run into previously, but had worked around a bit.  Specifically, the issue is that when octave tries to use gnuplot, it defaults to AquaTerm as the graphics terminal.  Now, when you use gnuplot on its own and AquaTerm is not detected, gnuplot correctly defaults to X11 as an alternative.  However, somehow this does not seem to be the case when octave calls out to gnuplot.

I tried installing AquaTerm.  Even then, neither gnuplot nor octave recognized that AquaTerm was installed.

To address the problem:
    1. Uninstall gnuplot- I had originally installed gnuplot via homebrew.  I went ahead and uninstalled gnuplot.
    2. Install the latest version of AquaTerm: http://sourceforge.net/projects/aquaterm
    3. Re-install gnuplot.  Again, the easiest approach here is to use homebrew.


It seems that the problem was that during the installation of gnuplot, the AquaTerm dynamic libraries were not discovered.  If AquaTerm is installed before gnuplot, the libraries are placed in the correct location.  Then, during the gnuplot build the libraries are properly identified.

These were the errors I was seeing before I managed to address the issue:
    
Unknown or ambiguous terminal name 'aqua'line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

Now everything works fine, and I'm able to draw beautiful graphs to AquaTerm.


转自 http://deveneezer.blogspot.com/2013/06/octave-gnuplot-and-aquaterm.html

原创粉丝点击