bugGNU Octave - Bugs: bug #42103, legend does not support image...

 
 

bug #42103: legend does not support image objects

Submitter:  Rik <rik5>
Submitted:  Sat 12 Apr 2014 08:38:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Apr 2014 03:48:50 PM UTC, comment #2: 

Since Matlab doesn't support legends for image objects, I don't see why Octave should have to either.  Closing report.

Rik <rik5>
Group administrator
Sun 13 Apr 2014 09:14:44 AM UTC, comment #1: 

Actually, the image "displayname" property doesn't seem to be used in matlab. Your example script returns:


>>close all
>>hi = image ();
>>hl = legend ('Test');
Warning: Plot empty.


I googled "matlab image legend" and found that indeed legends are not supported for image objects (see e.g. http://www.mathworks.in/matlabcentral/newsreader/view_thread/275317).

Pantxo Diribarne <pantxo>
Group Member
Sat 12 Apr 2014 08:38:47 PM UTC, original submission:  

image objects in Matlab have a DisplayName property and can be used in legends.  Following cset 2deed6538c72, Octave image objects now have the DisplayName property as well.  Legend needs to be modified to support these objects.

It would be useful if someone with access to Matlab could also test whether the default legend location is changed to be "outside" the plot box.  Sample code for testing:


close all
hi = image ();
hl = legend ('Test');
get (hl, 'location')


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 pantxo (Posted a comment)
  • -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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-13 rik5 StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code