bugGNU Octave - Bugs: bug #44672, Difference with figure/uicontrol...

 
 

bug #44672: Difference with figure/uicontrol between Octave and MATLAB

Submitted by:  Guillaume <gyom>
Submitted on:  Mon 30 Mar 2015 06:27:10 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: GuillaumeOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 13 Jun 2016 10:57:24 AM UTC, comment #1:

Item four ("Interpretation of '&' in the 'String' property of a uicontrol") is discussed independently in bug #48214.

Guillaume <gyom>
Mon 30 Mar 2015 06:27:10 PM UTC, original submission:

I observed small differences in behaviour or syntax between Octave and MATLAB regarding figure/uicontrol - they sometimes correspond to undocumented features so I understand if they were not implemented in Octave but I thought some of them might still be relevant. Let me know if I should write several bug reports instead or wait for 4.0 release before doing so.

  • Octave does not return all the handles of the default menu from a new figure:

i.e. Octave returns the handle of the figure only, while MATLAB returns the handles of the figure, menu and toolbar items.

  • Difference between gco and gcbo:

at each click on the button, MATLAB displays the handle of the pushbutton for both gco and gcbo while Octave returns [] and the handle of the pushbutton, unless you click in the figure and then gco is the handle of the figure.

  • Numerical content of the 'String' property of a uicontrol:

Octave returns an error as it expects a string while MATLAB will automatically convert to a string (with a call to num2str I presume).

  • Interpretation of '&' in the 'String' property of a uicontrol:

In Octave, it creates an underlines B (as it would do for a uimenu, and enables Alt-B) while on MATLAB, it displays 'A&B'.

  • Options for figure/uicontrol/... can be provided as property/value pairs and/or a structure:

MATLAB is fine with both syntaxes (I could not find it mentioned in the documentation though) while Octave only acceps the first one.

Guillaume <gyom>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gyom (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1