bugGNU Octave - Bugs: bug #39578, "currentfigure" property...

 
 

bug #39578: "currentfigure" property does not follow the mouse for fltk toolkit

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sat 27 Jul 2013 02:20:47 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 01 Aug 2013 11:39:23 PM UTC, comment #4: 

I pushed a change that works for the few tests I did.

http://hg.savannah.gnu.org/hgweb/octave/rev/88616c872933

Ben Abbott <bpabbott>
Group Member
Sun 28 Jul 2013 02:12:43 AM UTC, comment #3: 

The support for mouse handlers is indeed better in QtHandles. AFAIK, the FLTK backend only supports the windowbuttonXXX handlers.

Michael Goffioul <goffioul>
Sat 27 Jul 2013 09:15:22 PM UTC, comment #2: 

Good point.  With matlab the "buttondownfcn" does not function when the zoom tool is active.  I assume that the same is true here?

This problem is beyond my present understanding of the code, and since there is some lower hanging fruit, I'll likely not but any more effort into this.

I assume that "buttondownfcn" works as intended with the qt toolkit?

Ben Abbott <bpabbott>
Group Member
Sat 27 Jul 2013 09:07:56 PM UTC, comment #1: 

But, if you plot subplots, you can use
the mouse to pan and zoom any of the
subplots.  But, gca() returns the axis
handle of the "last" subplot.  So, somehow
it is known which subplot the cursor is on.

That is a start.

Michael Godfrey <godfrey>
Group Member
Sat 27 Jul 2013 02:20:47 PM UTC, original submission:  

The sequence below should return the handle for figure(1).


figure (1)
plot (rand (3))
figure (2)


  • Mouse click on figure (1)



gcf ()
ans =  2


Essentially what is needed is a private "buttondownfcn" figure property that sets the current "currentfigure" of the root object.

Ben Abbott <bpabbott>
Group Member

 

(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 godfrey (Posted a comment)
  • -email is unavailable- added by bpabbott (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-05 bpabbott StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2013-08-01 bpabbott StatusNone Ready For Test
        Assigned toNone bpabbott
    2013-07-28 bpabbott Summarycurrent figure does not follow the mouse "currentfigure" property does not follow the mouse for fltk toolkit

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code