bugGNU Octave - Bugs: bug #33220, set(HANDLE, 'property') does not...

 
 

bug #33220: set(HANDLE, 'property') does not list possible parameter values

Submitted by:  None
Submitted on:  Tue 03 May 2011 02:24:13 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Jochen WeberOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 19 Dec 2013 12:37:58 AM UTC, comment #6:

The patch works for me too. I added documentation about the new behavior (http://hg.savannah.gnu.org/hgweb/octave/rev/1c22f0465c74). Closing report.

Rik <rik5>
Project Administrator
Sat 07 Dec 2013 04:27:55 PM UTC, comment #5:

Pantxo, your patch works for me. I've pushed it do the default branch.

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

Ben Abbott <bpabbott>
Project Member
Sat 07 Dec 2013 03:02:59 PM UTC, comment #4:

Attached is a patch. I added a method in (base_)graphics_object classes to print allowed values for individual properties.

(file #29802)

Pantxo Diribarne <pantxo>
Project Member
Thu 27 Sep 2012 06:17:40 PM UTC, comment #3:

Re-titling report to clearer. Changing Item Group to Matlab Compatibility.

As of 9/27/2012 the development version does have Matlab compatible behavior for the code in comment #2.

p = get ([gca, gcf])
p = get ([gcf, gcf], 'papersize')

The outstanding issue is still the first reported problem.

Rik <rik5>
Project Administrator
Sun 18 Sep 2011 10:08:24 PM UTC, comment #2:

I noticed additional problems with Octave's implementation.

With Octave, the command below behaves like get (gcf).

p = get ([gca, gcf])

Matlab gives an error. For a array of handles, Matlab returns an array of structures.

Regarding the bug reported here, if the property name is given ...

p = get ([gcf, gcf], 'papersize')

Matlab will return a cell array (one for each handle).

Ben Abbott <bpabbott>
Project Member
Sun 08 May 2011 04:32:07 AM UTC, comment #1:

This is partially implemented in Octave, which may allow you to produce a workaround. Basically, 'set(HANDLE)' is implemented, but asking for the defaults on a specific property is not. Thus,

To see the a pretty print version showing which option is the default for every property available try just 'set (0)'

Rik <rik5>
Project Administrator
Tue 03 May 2011 02:24:13 PM UTC, original submission:

Matlab allows the following syntax to inquire the set of available parameter values for a property on a handle:

This returns a 2x1 cell array with items 'queue' and 'cancel'.

In addition to that, if called without a LHS assignment (nargout == 0), the list is nicely formatted (according to Matlab's documentation standard) and printed into the console:

[ {queue} | cancel ]

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #29802:  fix_bug33220.diff added by pantxo (3KiB - text/x-patch)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by pantxo (Updated the item)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 19 Dec 2013 12:37:58 AM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sat 07 Dec 2013 04:27:55 PM UTCbpabbottStatusConfirmed=>Ready For Test
      Release3.4.0=>dev
    Sat 07 Dec 2013 03:02:59 PM UTCpantxoAttached File-=>Added fix_bug33220.diff, #29802
    Thu 27 Sep 2012 06:17:40 PM UTCrik5Item GroupFeature Request=>Matlab Compatibility
      Summaryset(HANDLE, \'property\') not compatible with Matlab=>set(HANDLE, 'property') does not list possible parameter values
    Sun 18 Sep 2011 10:08:24 PM UTCbpabbottCategoryNone=>Interpreter
      StatusNone=>Confirmed
      Operating SystemMac OS=>Any
    Wed 31 Aug 2011 05:19:31 AM UTCrik5Dependencies-=>bugs #34151 is dependent

    Back to the top


    Powered by Savane 3.1-cleanup1