bugGNU Octave - Bugs: bug #37442, hggroup object missing DisplayName...

 
 

bug #37442: hggroup object missing DisplayName and EraseMode properties

Submitter:  Rik <rik5>
Submitted:  Tue 25 Sep 2012 08:25:23 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Rik Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 15 Oct 2012 08:21:58 PM UTC, comment #4: 

Oops.  The changeset link was incorrect, but the patch is the same as written by Ben.

Rik <rik5>
Group administrator
Mon 15 Oct 2012 06:52:42 PM UTC, comment #3: 

Rik, did you intend to link to this changeset

http://hg.savannah.gnu.org/hgweb/octave/rev/f915996325b7

?

John W. Eaton <jwe>
Group administrator
Mon 15 Oct 2012 03:19:00 AM UTC, comment #2: 

Yes, that was an easy fix.  I checked in the change under your name here (http://hg.savannah.gnu.org/hgweb/octave/rev/bcace51598ed).

Rik <rik5>
Group administrator
Sat 13 Oct 2012 06:00:03 PM UTC, comment #1: 

I may be wrong, but I think adding these properties is done with the trivial changeset below.


diff --git a/libinterp/interpfcn/graphics.in.h b/libinterp/interpfcn/graphics.in.h
--- a/libinterp/interpfcn/graphics.in.h
+++ b/libinterp/interpfcn/graphics.in.h
@@ -4810,6 +4810,8 @@
     // properties declarations.

     BEGIN_PROPERTIES (hggroup)
+      string_property displayname , ""
+      radio_property erasemode , "{normal}|none|xor|background"
       // hidden properties for limit computation
       row_vector_property xlim hr , Matrix ()
       row_vector_property ylim hr , Matrix ()


Supporting these properties will be a lot more work.

Ben Abbott <bpabbott>
Group Member
Tue 25 Sep 2012 08:25:23 PM UTC, original submission:  

According to Matlab documentation, an hggroup object should have DisplayName and EraseMode properties.  DisplayName is initialized to "" and EraseMode to "normal".

Having the DisplayName property would be useful when writing the legend() function so that multiple objects could share a single label key in the legend.

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 jwe (Posted a comment)
  • -email is unavailable- added by bpabbott (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-15 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2012-10-13 bpabbott Originator Name Rik

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code