bugGNU Octave - Bugs: bug #52557, flickering of axis and tick marks...

 
 

bug #52557: flickering of axis and tick marks with animation (performance of plot)

Submitter:  Andreas Stahel <sha1>
Submitted:  Thu 30 Nov 2017 09:01:21 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Performance
Status:  Fixed Assigned to:  None
Originator Name:  Andreas Stahel Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Dec 2017 11:04:14 PM UTC, comment #3: 

The patch definitely helps with the flickering, although the graphic slowness is probably caused by something else.

I did timing with


tic; DoublePendulum; toc



4.2.1 : 38.6 seconds
dev   : 67.7 seconds
dev w/patch: 63.1 seconds


Since it is a visual improvement I pushed the patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/0fa322bf312d).

Marking as fixed and closing report.


Rik <rik5>
Group administrator
Thu 30 Nov 2017 10:08:16 PM UTC, comment #2: 

The attached patch prevents the flickering for me. Nothing is drawn until "pause" or "drawnow" functions are called, or Octave returns to prompt.

The original script still looks slower with my dev version than with 4.2 on the same machine. This could be partly due to -O0, debug symbols and address sanitizer.

(file #42537)

Pantxo Diribarne <pantxo>
Group Member
Thu 30 Nov 2017 01:10:56 PM UTC, comment #1: 

The axes is being reset at each time step because you are using "plot" which is a high level function. There are 2 solutions:

  • either prevent axes from being reset:



...
figure (2); clf;
axes ("nextplot", "replacechildren");
axis ("square") ## remove it from the loop body
...


  • or use "line" (low level, axes untouched) instead of "plot".


This is the expected behavior, except that in Octave 4.2 it used to be faster. So I'll change the category to performance.

Pantxo Diribarne <pantxo>
Group Member
Thu 30 Nov 2017 09:01:21 AM UTC, original submission:  


In the enclosed code an animation is generated and the axis and tick marks should not change during the animation.
It works as expected with version 4.2.1

With the devel version:
When crating an animation the axis flicker and  occasionally display tickmarks at undesired positions are shown.

graphics_toolkit: qt and fltk
Tested with Ubuuntu 16.04 and 17.10, with very different graphics cards (NVidia and Intel)

Andreas Stahel <sha1>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #42537:  reset.patch added by pantxo (786B - text/x-patch)
file #42529:  DoublePendulum.m added by sha1 (832B - application/vnd.wolfram.mathematica.package)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by sha1 (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-01 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2017-11-30 pantxo Attached File- Added reset.patch, #42537
        StatusConfirmed Patch Submitted
    2017-11-30 rik5 Summaryflickering of axis and tick marks with animation flickering of axis and tick marks with animation (performance of plot)
    2017-11-30 pantxo Item GroupNone Performance
        StatusNone Confirmed
    2017-11-30 sha1 Attached File- Added DoublePendulum.m, #42529

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code