[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac
From: |
Henry F. Mollet |
Subject: |
Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac |
Date: |
Sat, 04 Aug 2007 19:31:57 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
Hi Thomas,
You've seen my reply using gnuplot directly but that's not the goal.
I've also tried your other suggestions in reverse order:
> <Octave.app>/Contents/Resources/share/octave/2.9.13/m/plot/drawnow.m
>
> term = "x11"; #instead of term = "aqua"
Yes, this work, but then I can no longer use AquaTerm. Ideally I'd like to
toggle between x11 and AquaTerm as needed. I've tried
__gnuplot_set__ term aqua
but it no longer works in octave-2.9.13.
Works fine with octave-2.1.71/gnuplot-4.0
> __version__ = "4";
>
> in line 39 of the file
> <Octave.app>/Contents/Resources/share/octave/2.9.13/m/plot/__gnuplot_version__
> .m
I had no luck with this:
octave-2.9.13:1> fplot('sin',[0,2*pi])
warning: __gnuplot_version__: some elements in list of return values are
undefin
ed
error: Both version numbers must be strings
error: evaluating if command near line 73, column 3
error: called from `compare_versions' in file
`/Applications/Octave.app/Contents
/Resources/share/octave/2.9.13/m/miscellaneous/compare_versions.m'
error: evaluating static command near line 35, column 5
error: evaluating if command near line 29, column 3
error: called from `__go_draw_axes__' in file
`/Applications/Octave.app/Contents
/Resources/share/octave/2.9.13/m/plot/__go_draw_axes__.m'
error: evaluating switch command near line 57, column 4
error: evaluating for command near line 55, column 2
error: evaluating if command near line 37, column 7
error: evaluating if command near line 30, column 5
error: evaluating if command near line 29, column 3
error: called from `__go_draw_figure__' in file
`/Applications/Octave.app/Conten
ts/Resources/share/octave/2.9.13/m/plot/__go_draw_figure__.m'
error: evaluating if command near line 61, column 6
error: evaluating if command near line 58, column 4
error: evaluating if command near line 56, column 2
error: evaluating for command near line 55, column 7
error: evaluating if command near line 38, column 5
error: called from `drawnow' in file
`/Applications/Octave.app/Contents/Resource
s/share/octave/2.9.13/m/plot/drawnow.m'
octave-2.9.13:2>
*************************
on 8/4/07 2:48 AM, Thomas Treichl at address@hidden wrote:
> Henry F. Mollet schrieb:
>> I want to use gnuplot_x11 instead of AquaTerm for plots when using
>> octave.app/gnuplot.app in xterm window.
>> "GNUTERM=X11" does not work (see below)
>>
>> It works with octave-2.1.71/gnuplot-4.0 in xterm windwow.
>> Henry
>>
>> henry-f-mollets-emac:~ hfm$ GNUTERM=X11
>> henry-f-mollets-emac:~ hfm$
>> /Applications/Octave.app/Contents/Resources/bin/octave
>>
>> GNU Octave, version 2.9.13
>> Copyright (C) 2007 John W. Eaton and others.
>>
>> octave-2.9.13:1> fplot('cos',[0,2*pi])
>> Expected X11 driver: /tmp/gnuplot-ppc/libexec/gnuplot/4.2/gnuplot_x11
>> See 'help x11' for more details
>> /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 57: 694
>> Broken pipe "${ROOT}/bin/gnuplot-4.2.0" "$@"
>>
>> [~] -bash-2.05b 502$ locate gnuplot_x11
>> /Applications/GnuPlot.app/Contents/Resources/libexec/gnuplot/4.2/gnuplot_x11
>> /usr/local/libexec/gnuplot/4.0/gnuplot_x11
>
> Right Henry, some is my fault.
>
> I added the following code to the file
> <Gnuplot.app>/Contents/Resources/bin/gnuplot to make sure that the X11 runtime
> environment is opened and all necessary variables are set (if not already
> set).
> Add this code in line 56 after "export GNUPLOT_PS_DIR... fi"
>
> if [ "${GNUTERM}" == "x11" ]; then
> # Edit /etc/X11/xinit/xinitrc if you don't like it that an xterm is
> # opened if X11 is started.
> open "/Applications/Utilities/X11.app"
> if [ -z ${DISPLAY} ]; then export DISPLAY=:0.0; fi
> if [ -z ${GNUPLOT_DRIVER_DIR} ]; then
> export GNUPLOT_DRIVER_DIR="${ROOT}/libexec/gnuplot/4.2"
> fi
> fi
>
> then try to run <Gnuplot.app>/Contents/Resources/bin/gnuplot and type
>
> bash$ export GNUTERM=x11 # note the lower case letter of x11
> bash$ <Gnuplot.app>/Contents/Resources/bin/gnuplot
> gnuplot> plot sin(x)/x
>
> I can see another problem in the current CVS of octave that the version number
> of Gnuplot.app is not set correctly and because of this we get another error.
> I
> need to have a look for that and will send back a patch to the Octave bug-list
> (meanwhile can you please try if these changes solve the problem on your
> machine?). You can also work around this problem if you set
>
> __version__ = "4";
>
> in line 39 of the file
> <Octave.app>/Contents/Resources/share/octave/2.9.13/m/plot/__gnuplot_version__
> .m
>
> also drawnow.m overwrites the term variable to "aqua" - a first workaround
> would
> be that you manually set "x11" in line 124 of
> <Octave.app>/Contents/Resources/share/octave/2.9.13/m/plot/drawnow.m
>
> term = "x11";
>
> Don't know if I have the time today to work on this problem but meanwhile you
> should be able to work with this and X11. I prepare a patch and then send this
> to the list.
>
> Thomas
- gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Henry F. Mollet, 2007/08/02
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Thomas Treichl, 2007/08/04
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Henry F. Mollet, 2007/08/04
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac,
Henry F. Mollet <=
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Thomas Treichl, 2007/08/10
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Henry F. Mollet, 2007/08/10
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Thomas Treichl, 2007/08/11
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Henry F. Mollet, 2007/08/11
- Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac, Henry F. Mollet, 2007/08/11