bugGNU Octave - Bugs: bug #40212, Default graphics properties are...

 
 

bug #40212: Default graphics properties are not supported for rectangle objects

Submitter:  Rik <rik5>
Submitted:  Wed 09 Oct 2013 01:00:17 AM UTC
   
 
Category:  Plotting Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  In Progress Assigned to:  rik5
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Nov 2016 10:20:26 PM UTC, comment #5: 

This issue is still present in Octave 4.2.0.

(The code line from comment #0 still throws an error.)

Hartmut <hardy>
Wed 09 Oct 2013 05:50:34 PM UTC, comment #4: 

Done.  I created the Wiki page and sent some e-mails about it.  I'll assign this bug to myself so no one duplicates any effort.

Rik <rik5>
Group administrator
Wed 09 Oct 2013 03:20:42 PM UTC, comment #3: 

OK, then let's start that wiki page or use the task tracker to make a list of items that need to be done before the release.

John W. Eaton <jwe>
Group administrator
Wed 09 Oct 2013 03:05:30 PM UTC, comment #2: 

I don't think it will be that hard either, but I can do this if it will free you to work on bugs that I can't tackle.  There are a number of parser oddities and the regression with the profiler (involving the symbol table) which I would rather have solved.

Rik <rik5>
Group administrator
Wed 09 Oct 2013 02:17:17 PM UTC, comment #1: 

I think we should add the core graphics object.  It is easy enough to add the properties and functions that manipulate them.  The harder part is adding the support for drawing, but since a rectangle object is very similar to a line, it should not be too hard.  Unless someone else really wants to work on this job, I can do it.

John W. Eaton <jwe>
Group administrator
Wed 09 Oct 2013 01:00:17 AM UTC, original submission:  

This is a small incompatibility.  Matlab implements rectangles as a base graphic object, akin to a line or patch object.  In Octave, we synthesize a rectangle from an hggroup with a patch child.  Because of this, there is no way to set default properties as shown below.


set (0, 'DefaultRectangleFaceColor', 'r')
error: invalid default property specification


Perhaps the property list could be changed in graphics.in.h.  Otherwise, maybe a whole new low-level graphics object is required for rectangles.

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 hardy (Posted a comment)
  • -email is unavailable- added by jwe (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
    2013-10-17 rik5 StatusNone In Progress
    2013-10-09 rik5 Assigned toNone rik5

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code