bugGNU Octave - Bugs: bug #43208, figure property lists differ

 
 

bug #43208: figure property lists differ

Submitter:  Michael Godfrey <godfrey>
Submitted:  Fri 12 Sep 2014 09:33:03 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Michael Godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 15 Sep 2014 07:59:58 AM UTC, comment #6: 

I agree that having one bug report for the needed rewrite
of Section 15.3.3 is appropriate. However, it would be
simpler for me if the last patch in bug #42536 were
pushed to the devel branch. It needs additional work as
you have pointed out, but it is in large part correct
and is a large patch.  This would, at least, produce some progress.

In any case, closing this report is OK with me.



Michael Godfrey <godfrey>
Group Member
Mon 15 Sep 2014 07:13:56 AM UTC, comment #5: 

May I close this bug report so that we continue the discussion in bug #42536?

Pantxo Diribarne <pantxo>
Group Member
Sat 13 Sep 2014 04:24:43 PM UTC, comment #4: 

I will check this and see what can be done.
This will happen after the patch for
bug #42536 is pushed.

Michael Godfrey <godfrey>
Group Member
Sat 13 Sep 2014 04:03:35 PM UTC, comment #3: 

This difference between set and get was introduced for matlab compatibility (see bug #41629). It lets you retrieve read-only properties names e.g. as follows :


fld1 = fieldnames (get (gcf ()));
fld2 = fieldnames (set (gcf ()));
idx = @cellfun (@(s) ! any (strcmp (s, fld2)), fld1);
readonly = fld1(idx)


I admit it would be good to document which properties are read-only in the manual.

As I don't have matlab at home I can't test the output of "get (gcf (), '')", and I can't say if there is really a bug about this.

Pantxo Diribarne <pantxo>
Group Member
Sat 13 Sep 2014 12:24:04 PM UTC, comment #2: 

It is useful to know that set ignores read-only.
This will be better documented.

I have intended to try to find a way of indicating
read-only state, but this will need to wait a while.

Michael Godfrey <godfrey>
Group Member
Sat 13 Sep 2014 09:51:48 AM UTC, comment #1: 

Hi,

I am not sure I understand what you mean. What is matlab output for "get (gcf (), '')"?

Anyways I wouldn't expect the output of "set" and "get" to be the same: some figure properties are read-only  ("set" intendedly ignores them).

Pantxo Diribarne <pantxo>
Group Member
Fri 12 Sep 2014 09:33:03 AM UTC, original submission:  

The following commands produce the attached output:
   95 # Octave 4.1.0+, Thu Sep 11 13:50:40 2014 BST
   96 h=figure();
   97 set (gcf())
   98 get (h,"");
The list from set (gcf()) does not match the one
from get(h,""), but bothe should list all figure
properties.

After the patch in bug # 42536 is applied the Manual
will be consistent with set (gcf()). However, I suspect
that get (h,"") is more nearly correct.

Michael Godfrey <godfrey>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32081:  Figure_properties_mismatch added by godfrey (4KiB - application/octet-stream)

 

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 godfrey (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-09-15 pantxo Open/ClosedOpen Closed
    2014-09-12 godfrey Attached File- Added Figure_properties_mismatch, #32081

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code