help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ginput does not appear to work as expected


From: Stephen Wilson
Subject: Re: ginput does not appear to work as expected
Date: Fri, 2 Sep 2011 09:39:43 +0100

Thanks so much for the tips! It works as expected now. This is a great forum :-) I really appreciate the patient advice for newbies like myself :-)



On 1 September 2011 19:19, Ben Abbott <address@hidden> wrote:
On Sep 1, 2011, at 2:14 PM, Liam Groener wrote:

>
> On Sep 1, 2011, at 5:34 AM, Stephen Wilson wrote:
>
>> Hello again,
>>
>> I am having some issues with ginput working properly. My system uses:
>>
>>   G N U P L O T
>>   Version 4.4 patchlevel 3
>>   last modified March 2011
>>   System: Darwin 10.7.3
>>
>>
>> and
>>
>> GNU Octave, version 3.4.2
>>
>> I noted some issues with ginput already posted on the help forum but the posts are already between 1 and 2 years old and I assume that the patches have already been included in the latest release, which I have.
>>
>> If I input, for example,
>>
>> axis(1:4);
>> [gx gy gbutton] = ginput(1)
>>
>> I don't get a chance to make any input via the mouse. Instead I get the following output and the script ends:
>>
>> gx = 0
>> gy = 0
>> gbutton = -1
>>
>>
>> Is tehre some other thing that I need to enable in order to use ginput correctly?
>>
> On OS X, at least, I think you have to use the fltk backend for ginput to work. Try typing:
> graphics_toolkit fltk
> figure
> and then repeat your commands.

If you are using MacOS the default gnuplot terminal is "aqua" which does not interact with the mouse.

It should be possible to switch to x11 by ...

       close all
       setenv ("GNUTERM", "x11")

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]