bugGNU Octave - Bugs: bug #44719, fltk: figure not always updated by...

 
 

bug #44719: fltk: figure not always updated by mouse-zoom

Submitted by:  None
Submitted on:  Sat 04 Apr 2015 12:55:08 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: FixedAssigned to: None
Originator Name: jspechtOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 02 Jun 2015 04:43:03 PM UTC, comment #2:

Retagging release from 4.0.0-rc2 to 4.0.0.

John W. Eaton <jwe>
Project Administrator
Thu 09 Apr 2015 11:15:20 PM UTC, comment #1:

I applied your change here (http://hg.savannah.gnu.org/hgweb/octave/rev/76b1168342c0). This makes linked axes work correctly.

I still had a problem with the original example:

I checked in a different cset for that (http://hg.savannah.gnu.org/hgweb/octave/rev/402e6678673b).

Rik <rik5>
Project Administrator
Sat 04 Apr 2015 12:55:08 PM UTC, original submission:

octave --no-gui

>> graphics_toolkit('fltk')
>> x=linspace(0,2*pi,100);
>> a=figure(); plot(x,sin(x)); b=figure(); plot(x,cos(x));
>> linkaxes([get([a,b],'currentaxes'){:}],'x');


After zooming a single plot (right mouse button) and then auto-scaling (double-click left mouse button) the plot window is not updated (i.e. stays zoomed).
By resizing the figure the missing update can be enforced.

This also happens when zooming linked axes (linkaxes()) of different figures where it is rather annoying.

Origin is a missing Fdrawnow() in the idle-hook _fltk_check_().
See here the also attached patch:
~/src/octave$ hg diff
diff -r cf9b94a89620 libinterp/dldfcn/__init_fltk__.cc
--- a/libinterp/dldfcn/__init_fltk__.cc Thu Apr 02 15:36:38 2015 -0700
+++ b/libinterp/dldfcn/__init_fltk__.cc Sat Apr 04 14:49:34 2015 +0200
@@ -2274,6 +2274,9 @@
{
#ifdef HAVE_FLTK
Fl::check ();
+
+ if (Vdrawnow_requested)
+ Fdrawnow ();
#else
error ("__fltk_check__: not available without OpenGL and FLTK libraries");
#endif

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #33532:  fltk-drawnow.patch added by None (397B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Jun 2015 04:43:03 PM UTCjweRelease4.0.0-rc2=>4.0.0
    Thu 09 Apr 2015 11:15:20 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 04 Apr 2015 12:55:08 PM UTCNoneAttached File-=>Added fltk-drawnow.patch, #33532

    Back to the top


    Powered by Savane 3.1-cleanup1