bugGNU Octave - Bugs: bug #45621, Bar does not execute ButtonDownFcn

 
 

bug #45621: Bar does not execute ButtonDownFcn

Submitted by:  None
Submitted on:  Sat 25 Jul 2015 12:35:54 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: LarsOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Sun 27 Sep 2015 07:26:13 PM UTC, comment #6:

I pushed the patch on stable:

http://hg.savannah.gnu.org/hgweb/octave/rev/7d7c91ddc736

Closing report.

Pantxo Diribarne <pantxo>
Project Member
Sun 23 Aug 2015 08:02:06 PM UTC, comment #5:

Thanks John, I attached a patch: if an object is clicked and its parent is a hggroup, the parent "buttondownfcn" is executed if the object itself has an empty "buttondownfcn".

(file #34707)

Pantxo Diribarne <pantxo>
Project Member
Thu 30 Jul 2015 12:16:37 PM UTC, comment #4:

For comment 1, using matlab R2010b:

John Donoghue <lostbard>
Project Member
Tue 28 Jul 2015 02:17:58 AM UTC, comment #3:

sorry, no MATLAB available to check it...
But clicking the bars works fine when using the fltk toolkit.
Only Qt has the problem. So I assume it should be propagated indeed...

Anonymous
Sat 25 Jul 2015 04:04:46 PM UTC, comment #2:

I forgot, if the fix is to propagate the "buttondownfcn" of hggroups to their children, there are many functions that could use that same fix. I see at least: rectangle.m, _contour_.m, _bar_.m, _quiver_.m, _stem_.m, _errplot_.m, _scatter_.m, area.m, stairs.m

I didn't change the bug category "plotting" even though I doubt gnuplot will ever handle this property

Pantxo Diribarne <pantxo>
Project Member
Sat 25 Jul 2015 01:15:57 PM UTC, comment #1:

Thanks for your bug report. It would be easy to attribute the same "buttondownfcn" to all the hggroup objects that are created by bar.m and their children, but how does Matlab behave? Do you have Matlab at hand? If so can you check what the following script returns?

In octave all hggroups inherit the "buttondownfcn" property but not their actual children objects. Hence the selection mechanism doesn't trigger any action.

Pantxo Diribarne <pantxo>
Project Member
Sat 25 Jul 2015 12:35:54 AM UTC, original submission:

%Buttondownfcn does not work in a bar graph
%But has no problem in a normal plot

x=1:10

figure(1)
plot(x,"buttondownfcn","disp Clicking_The_Line_is_Fine")

figure(2)
bar(x,"buttondownfcn","disp But_Not_The_Bar")

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34707:  fix_qt_btndown.patch added by pantxo (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Sep 2015 07:26:13 PM UTCpantxoStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sun 23 Aug 2015 08:02:06 PM UTCpantxoAttached File-=>Added fix_qt_btndown.patch, #34707
      CategoryPlotting=>Plotting with OpenGL
      StatusNeed Info=>Patch Submitted
    Sat 25 Jul 2015 04:04:46 PM UTCpantxoStatusNone=>Need Info
      Operating SystemMicrosoft Windows=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1