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: Ben Abbott
Subject: Re: ginput does not appear to work as expected
Date: Thu, 01 Sep 2011 14:19:59 -0400

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]