bugGNU Octave - Bugs: bug #41977, '__qt_ginput__' not found

 
 

bug #41977: '__qt_ginput__' not found

Submitter:  Doug Stewart <dastew>
Submitted:  Thu 27 Mar 2014 02:22:45 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  5 - Blocker
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Doug Stewart Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 19 Feb 2015 05:31:40 PM UTC, comment #8: 

I also checked in a change to capture the button number:

http://hg.savannah.gnu.org/hgweb/octave/rev/b38b677c0fa8

John W. Eaton <jwe>
Group administrator
Thu 19 Feb 2015 04:00:48 PM UTC, comment #7: 

Fixed now.  Closing report.

Rik <rik5>
Group administrator
Thu 19 Feb 2015 07:31:06 AM UTC, comment #6: 

I checked in a change for the undefined ax variable:

http://hg.savannah.gnu.org/hgweb/octave/rev/c040bed12b2e

John W. Eaton <jwe>
Group administrator
Wed 18 Feb 2015 07:55:39 PM UTC, comment #5: 

Fails for me when I hit a key, such as <RETURN>, to end unlimited input.


plot (1:10)
[x,y,btn] = ginput
error: 'ax' undefined near line 128 column 16
error: called from
    ginput>ginput_keypressfcn at line 128 column 9
    ginput at line 81 column 7
error: evaluating argument list element number 1
error: called from
    ginput>ginput_keypressfcn at line 128 column 9
    ginput at line 81 column 7



Rik <rik5>
Group administrator
Wed 18 Feb 2015 07:33:26 PM UTC, comment #4: 

I checked in the following change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/3fc946d5e91f

The buttons array is still empty with the Qt toolkit, but that seems like a separate issue.  I'll take a look at that next unles someone else wants to claim it.

John W. Eaton <jwe>
Group administrator
Wed 18 Feb 2015 05:55:05 PM UTC, comment #3: 

Raising to Blocker since Qt will be the default window system for the 4.0 release.

Rik <rik5>
Group administrator
Thu 31 Jul 2014 09:15:57 PM UTC, comment #2: 

This should be easy to fix: Because _fltk:ginput_.m makes only use of figure::properties::callbacks and they are alreay implemented for qt, a quick hack&dirty to override the toolkit in ginput.m

+++ b/scripts/plot/util/ginput.m        Thu Jul 31 23:05:07 2014 +0200
@@ -43,7 +43,7 @@
   a = gca ();  # Create an axis, if necessary
   drawnow ();
   toolkit = get (f, "__graphics_toolkit__");
+toolkit = "fltk";
   varargout = cell (1, nargout);


makes ginput usable (but BUTTONS is empty) in the GUI with graphics_toolkit qt.


>> graphics_toolkit
ans = qt
>> plot(1:10)
>> [X, Y, BUTTONS] = ginput (3)
X =

   1.7558
   3.8525
   6.2258

Y =

   1.7558
   3.8525
   6.2258

BUTTONS = [](0x0)


This leads to a question for the final implementation: How should we rename scripts which works for fltk and qt (for example _fltk_ginput_.m)?

Sould we use "opengl" for both toolkits (_opengl_ginput_)? On the other hand there is nothing special to qt, fltk or opengl in these scripts. They use figure and axes callbacks which should be available to all toolkits.

Btw, in scripts/gui/private we have a different naming scheme: There is is _[basefunction][graphics_toolkit]__.m and in plot/util/private/ it is _[graphics_toolkit][basefunction]__.m

-- Andy

Andreas Weber <andy1978>
Group Member
Sat 29 Mar 2014 09:15:21 PM UTC, comment #1: 

Confirmed on the development branch as well. The function works for gnuplot and fltk but is not yet implemented for the qt toolkit.

Mike Miller <mtmiller>
Group Member
Thu 27 Mar 2014 02:22:45 PM UTC, original submission:  


I am using octave gui release branch 3.9.0+  and graphics-toolkit qt

when I try this:
[x, y, buttons] = ginput (1)

I get this:

error: feval: function '__qt_ginput__' not found

This is needed for the GSoC sisotools project

Doug Stewart <dastew>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dastew (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-19 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-02-18 jwe Item GroupFeature Request Incorrect Result
        StatusConfirmed Ready For Test
    2015-02-18 rik5 Severity1 - Wish 5 - Blocker
    2014-03-29 mtmiller CategoryNone Plotting with OpenGL
        Severity3 - Normal 1 - Wish
        Item GroupNone Feature Request
        StatusNone Confirmed
        Releaseother dev

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code