bugGNU Octave - Bugs: bug #49747, rotate3d compatibility with Matlab

 
 

bug #49747: rotate3d compatibility with Matlab

Submitter:  Guillaume <gyom>
Submitted:  Thu 01 Dec 2016 12:54:35 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Fri 06 Sep 2019 02:08:47 PM UTC, comment #3: 

Just to add a note that Matlab's rotate3d also has two related utility functions: isAllowAxesRotate and setAllowAxesRotate.
https://www.mathw ... ref/rotate3d.html

Guillaume <gyom>
Fri 02 Dec 2016 10:26:40 AM UTC, comment #2: 

The function to see the public properties of an object is properties() but it is not available in Octave. The error you report with get() has, I think, more to do with missing features of the handle class, e.g. it doesn't work either with inputParser():


get(inputParser)
error: octave_base_value::array_value(): wrong type argument 'object'
error: get: H must be a graphics handle


I've nevertheless modified Rotate3D to have a better behavior there.

(file #39129)

Guillaume <gyom>
Thu 01 Dec 2016 09:15:40 PM UTC, comment #1: 

To view which properties are available returns an error:

>>get(hrot)
error: 'prop' undefined near line 27 column 15
error: called from
    get at line 27 column 7


kire pudsje <kpc>
Thu 01 Dec 2016 12:54:35 PM UTC, original submission:  

I have made some small adjustments to rotate3d.m for a better compatibility with Matlab. I also started writing a class (so far called Rotate3D) for the situation where rotate3d returns an object.

It allows to do this:


hfig = figure;
hrot = rotate3d (hfig);
hrot.FigureHandle
set(hrot, "Enable", "on");


I noticed that there was already some interest to update rotate3d:

http://lists.gnu. ... -09/msg00067.html

What would be a good name for the Rotate3D class and where should it be stored in Octave (eg somewhere in +octave/+internal/+graphics/Rotate3D.m)?

Guillaume <gyom>

 

Attached Files

Attached Files
file #39129:  Rotate3D.m added by gyom (1.8KiB - text/x-objective-c)
file #39125:  rotate.diff added by gyom (2.4KiB - application/x-download)
file #39126:  Rotate3D.m added by gyom (1.2KiB - text/x-objective-c)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by kpc (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    Votes

    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.

     

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-02 gyom Attached File- Added Rotate3D.m, #39129
    2016-12-01 gyom Attached File- Added rotate.diff, #39125
        Attached File- Added Rotate3D.m, #39126

    Back to the top

    Powered by Savane 3.16-8b18.
    Corresponding source code