bugGNU Octave - Bugs: bug #34788, "currentaxes" does not...

 
 

bug #34788: "currentaxes" does not follow the mouse

Submitted by:  Rob Frohne <frohro>
Submitted on:  Wed 09 Nov 2011 08:41:42 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Rob FrohneOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 05 Aug 2013 11:00:19 PM UTC, comment #5:

This one is reported to be working on Linux, so I'm closing

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Thu 01 Aug 2013 11:42:12 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

I tested this using subplots. The currentaxes followed mouse clicks across different axes and across different figures.

I may have missed something, so more tests would be appreciated.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sat 27 Jul 2013 01:59:21 PM UTC, comment #3:

Changing the summary. The problem looks to be that the current axes is not updated by a mouse click.

Something equivalent to a private "buttondownfcn" is needed (?).

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 27 Feb 2012 02:13:42 PM UTC, comment #2:

The problem is that the figure's currentaxes property isn't being updated

+verbatim_
demo subplot 1
hax = findall (gcf, "type", "axes");
-verbatim-

"grid on" and "grid off" or clicking on "G" behave the same, and only effects subplot(3,1,1).

After switching to subplot(3,3,9)

"grid on" and "grid off" or clicking on "G" behave the same, and only effects subplot(3,3,9).

The problem seems to be that the fltk backend isn't updating the gca when the axes or it children are selected. On MacOS X the pan functionality works for all axes by default. I haven't looked but my guess is that this bug is easy to fix.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 27 Feb 2012 06:04:34 AM UTC, comment #1:

Confirmed on a recent tip (eeff2d0a275d) on 2/26/12. I've re-title the report for clarity.

Rik <rik5>
Project Administrator
Wed 09 Nov 2011 08:41:42 PM UTC, original submission:

To see this, run the following commands, zoom in with the scroll function of the mouse on the top plot, then press the A button in the plot window.

graphics_toolkit ('fltk')
subplot(2,1,1)
plot(1:10)
subplot(2,1,2)
plot(1:20)

Rob Frohne <frohro>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by frohro (Submitted the item)
  • -unavailable- added by frohro
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Aug 2013 11:00:19 PM UTCbpabbottStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 01 Aug 2013 11:42:12 PM UTCbpabbottStatusConfirmed=>Ready For Test
      Assigned toNone=>bpabbott
    Sat 27 Jul 2013 01:59:21 PM UTCbpabbottSummaryFLTK menu buttons (A, G, etc.) only work on last axis of subplot=>"currentaxes" does not follow the mouse
    Mon 27 Feb 2012 02:13:42 PM UTCbpabbottStatusNone=>Confirmed
      Release3.4.3=>dev
    Mon 27 Feb 2012 06:04:34 AM UTCrik5SummaryUnzooming (A) with FLTK and subplots only works for bottom plot.=>FLTK menu buttons (A, G, etc.) only work on last axis of subplot
    Wed 23 Nov 2011 12:47:08 AM UTCbpabbottCategoryPlotting=>Plotting with OpenGL
    Wed 09 Nov 2011 08:41:42 PM UTCfrohroCarbon-Copy-=>Added frohro

    Back to the top


    Powered by Savane 3.1-cleanup1