[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnuplot not working on Mac OSX 10.9.5
From: |
Vic Norton |
Subject: |
Re: gnuplot not working on Mac OSX 10.9.5 |
Date: |
Mon, 6 Apr 2015 10:53:40 -0400 |
I have problems with qt:
octave> setenv GNUTERM qt
octave> figure (1)
Unknown or ambiguous terminal name 'qt'
This aquaterm solution works for me
1. install macports
see <https://www.macports.org/install.php>
2. install gnuplot from macports
$ sudo port install gnuplot +aquaterm+luaterm+pangocairo+wxwidgets+x11
3. disable your current gnuplot
/usr/local/octave/3.8.0/bin/gnuplot
by appending an "X" or something to "gnuplot"
4. in ~/.gnuplot put the line
set loadpath '/opt/local/bin/gnuplot'
5. in ~/.octaverc put the lines
gnuplot_binary ("/opt/local/bin/gnuplot");
graphics_toolkit gnuplot;
setenv GNUTERM aqua;
Regards,
Vic
On Apr 6, 2015, at 10:36 AM, Carlo De Falco <address@hidden> wrote:
> Did you have a previous version of Gnuplot installed?
>
> It seems you have some leftover settings that try to force Gnuplot to set
> the terminal to aquaterm wich is not included with the distribution.
>
> Try the following commands before plotting:
>
> close all
> setenv GNUTERM qt
>
> You could put this into your ~/.octaverc file not to repeat it every time
> you start Octave.
>
> Or even better try to find out where the spurious settings come from
> and delete them.
>
> c.
On Apr 6, 2015, at 9:31 AM, Ben Abbott <address@hidden> wrote:
>> First we should check which gnuplot Octave is finding.
>>
>> What does ...
>>
>> [a, b] = system ("which gnuplot")
>>
>> ... return?
>>
>> Ben
>>
>> Here is the return for this query:
>>
>> octave:3> [a,b] = system("which gnuplot")
>> a = 0
>> b = /usr/local/octave/3.8.0/bin/gnuplot
>
> Ok. Octave is finding the version of gnuplot that is present in the bundle,
> but that version was not build to support native graphics.
>
> If you want to continue using gnuplot, then you can try to use gnuplot's qt
> or x11 terminal.
>
> close all
>
> setenv GNUTERM qt
> figure (1)
> clf ()
> plot (rand (3))
> title ('Qt')
>
> setenv GNUTERM x11
> figure (2)
> clf ()
> plot (rand (3))
> title ('X11')
>
> Alternatively, you can use OpenGL for graphics.
>
> close all
> graphics_toolkit fltk
> plot (rand (3))
>
> Ben
>
Re: gnuplot not working on Mac OSX 10.9.5, chensi, 2015/04/10