bugGNU Octave - Bugs: bug #39317, subplot outerposition is not...

 
 

bug #39317: subplot outerposition is not compatible with Matlab

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sat 22 Jun 2013 04:15:01 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Jul 2013 03:02:30 PM UTC, comment #1: 

After further consideration, I concluded the most straight forward approach to aligning subplots is to synchronize max(looseinset,tightinset) across all subplots. In order for each subplot's "position" to have the same width and height the outerposition properties will need to have the same width and height.

I've pushed the changeset below,

http://hg.savannah.gnu.org/hgweb/octave/rev/942d892524b3

and am closing this report.

Ben Abbott <bpabbott>
Group Member
Sat 22 Jun 2013 04:15:01 AM UTC, original submission:  

Matlab gives,


get (subplot (211), 'outerposition')
ans =         0    0.5457    1.0000    0.4097


And Octave,


get (subplot (211), "outerposition")
ans =   0.050000   0.510000   0.900000   0.440000


The implied margin being added to the perimeter of the figure for subplots interferes with the placement of the legend box when the legend is placed outside the subplot's axes position.  I'm attaching a simple example.


subplot (2,1,1)
plot (rand (3))
legend blue green red
legend location northeastoutside
print -dpng -r72 subplot211-octave.png


There is also a problem with legend(), which is partially covered by the bug-report #39316

Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-19 bpabbott StatusNone Wont Fix
        Assigned toNone bpabbott
        Open/ClosedOpen Closed
    2013-06-22 bpabbott Attached File- Added subplot211-matlab.png, #28384
        Attached File- Added subplot211-octave.png, #28385

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code