bugGNU Octave - Bugs: bug #40258, orient doesn't return 'tall' as...

 
 

bug #40258: orient doesn't return 'tall' as possible orientation

Submitter:  Rik <rik5>
Submitted:  Sun 13 Oct 2013 05:51:32 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  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

Fri 18 Oct 2013 08:58:10 PM UTC, comment #6: 

Alright, everything fixed up here (http://hg.savannah.gnu.org/hgweb/octave/rev/cf43cc342bfa).  Closing report.

Rik <rik5>
Group administrator
Fri 18 Oct 2013 07:36:06 PM UTC, comment #5: 

Ok.  I didn't realize that orient() returned an output.  R2013a works the same as R2009b (Michael's result)


Ben Abbott <bpabbott>
Group Member
Fri 18 Oct 2013 07:06:24 PM UTC, comment #4: 

On Matlab R2009b I get:

>> plot (rand(3));
>> orient ('tall')
>> orient


ans =

tall

>>



Michael Godfrey <godfrey>
Group Member
Fri 18 Oct 2013 07:03:31 PM UTC, comment #3: 

I see that it is an input option, I was wondering if it was also an output from the function?  Does Matlab check that orientation == "portrait" and paperposition == size of page with 0.25" margin and return the string "tall" or does it just return the value of the paperorientation property which would be "portrait"

The test code below sets the orientation and then queries it to see if "tall" or "portrait" is returned.


plot (rand(3));
orient ('tall')
orient


Rik <rik5>
Group administrator
Fri 18 Oct 2013 06:34:01 PM UTC, comment #2: 

"tall" is an option.  It indicates the orientation should be "portrait" and the paperpostion = [0.25 0.25 papersize-0.5].


plot (rand (3))

get (gcf, 'paperposition')
ans =    0.2500    2.5000    8.0000    6.0000

orient landscape

get (gcf, 'paperposition')
ans =    0.2500    0.2500   10.5000    8.0000

orient tall

get (gcf, 'paperposition')
ans =    0.2500    0.2500    8.0000   10.5000

get (gcf, 'paperorientation')
ans =portrait


Ben Abbott <bpabbott>
Group Member
Fri 18 Oct 2013 06:20:13 PM UTC, comment #1: 

Ben, does Matlab actually return an orientation of "tall", or is it only an input option?  Does the following code return 'tall' or 'portrait'?


plot (rand(3));
orient ('tall')
orient


Rik <rik5>
Group administrator
Sun 13 Oct 2013 05:51:32 PM UTC, original submission:  

According to the documentation for the orient function (http://www.mathworks.com/help/matlab/ref/orient.html) it looks like querying the current orientation with 'orient' can return 'tall'.

Currently Octave returns just "portrait" or "landscape".

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 godfrey (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by rik5
  • -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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-18 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2013-10-18 rik5 Carbon-Copy- Added bpabbott

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code