bugGNU Octave - Bugs: bug #37966, newplot and subplot (1,1,1)...

 
 

bug #37966: newplot and subplot (1,1,1) produce different axes for FLTK

Submitter:  Rik <rik5>
Submitted:  Thu 20 Dec 2012 06:24:13 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 04 Aug 2013 02:27:57 AM UTC, comment #1: 

This has been fixed in the default branch.


newplot
get (gca, 'position')
ans =   0.13000   0.11000   0.77500   0.81500
clf
subplot (1,1,1)
get (gca, 'position')
ans =   0.13000   0.11000   0.77500   0.81500


Ben Abbott <bpabbott>
Group Member
Thu 20 Dec 2012 06:24:13 PM UTC, original submission:  

This is totally minor, and definitely a corner case, but it might be really quick for someone to fix who knows the graphics code in Octave.  Incidentally, it does not happen with gnuplot.

The axes 'position' property appears to be incorrectly set for the corner case of subplot (1,1,1).

Sample Code:


close all
graphics_toolkit fltk
figure (1)
newplot;
get (gca, 'position')
figure (2)
subplot (1,1,1);
get (gca, 'position')


You can see graphically the difference between the two figures and the position property is likewise different.

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 bpabbott (Posted a comment)
  • -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-08-04 bpabbott StatusNone Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code