bugGNU Octave - Bugs: bug #50267, FLTK: annotation only works if an...

 
 

bug #50267: FLTK: annotation only works if an axes already exists

Submitter:  Rik <rik5>
Submitted:  Thu 09 Feb 2017 07:15:01 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 09 Feb 2017 07:15:01 PM UTC, original submission:  

For some reason, hopefully trivial to find, the annotation command displays a blank window if the existing figure doesn't have an axes object.

Code to reproduce:


close all
graphics_toolkit fltk
h = annotation ("rectangle", [0.2 0.7 0.2 0.2])


A new figure is created, and h holds a graphics object handle, but nothing is displayed.  By contrast, Qt works.


close all
graphics_toolkit qt
h = annotation ("rectangle", [0.2 0.7 0.2 0.2])


It is enough to add an axes to have this work


close all
graphics_toolkit fltk
h = annotation ("rectangle", [0.2 0.7 0.2 0.2])
hax = axes


The issue seems to be that when there is no handlevisible, axes object below the figure Octave believes that nothing needs to be drawn.

Rik <rik5>
Group administrator

 

(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 rik5 (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code