bugGNU Octave - Bugs: bug #39337, tightinset is incorrect

 
 

bug #39337: tightinset is incorrect

Submitter:  Ben Abbott <bpabbott>
Submitted:  Tue 25 Jun 2013 05:58:17 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 27 Jul 2013 12:46:47 PM UTC, comment #3: 

No issues with changeset have been reported.

Ben Abbott <bpabbott>
Group Member
Fri 19 Jul 2013 02:51:54 PM UTC, comment #2: 
Ben Abbott <bpabbott>
Group Member
Sun 14 Jul 2013 07:19:54 PM UTC, comment #1: 

An example


clf
plot (rand (3))
set (gca, 'xticklabel', {}, 'yticklabel', {})
get (gca, 'tightinset')
ans =   0.046429   0.011915   0.000000   0.023810


Matlab doesn't give the expected zeros(1,4) either. But the extra is an order of magnitude less than what Octave returns.


ans =    0.0071    0.0095    0.0036         0


Ben Abbott <bpabbott>
Group Member
Tue 25 Jun 2013 05:58:17 AM UTC, original submission:  

I've written an m-file function to help examine the axes properties "position", "outerposition", "tightinset", and "looseinset".  The script draw lines or patches to represent any or all of these properties.

I've found that the tightset has three problems.

  • It includes some empty space to the left of the axes box (only when yaxislocation = "left")
  • It includes some empty space to at the top of the axes box.
  • It does not include the width of the xticklabels
  • It does not include the xticklabels or yticklabels for 3D plots


I've attached my m-file function and some plots.  In two of the plots produced by the function's demos. The region represented by the "tightinset" is plotted as a light blue patch.  The "tightboundingbox" represents the combined position+tightinset.



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
file #28408:  demo4.pdf added by bpabbott (573KiB - application/pdf)
file #28409:  demo1.pdf added by bpabbott (8KiB - application/pdf)
file #28407:  draw_axes_prop.m added by bpabbott (10KiB - application/octet-stream)

 

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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-27 bpabbott StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2013-07-19 bpabbott StatusNone Ready For Test
        Assigned toNone bpabbott
    2013-06-25 bpabbott Attached File- Added draw_axes_prop.m, #28407
        Attached File- Added demo4.pdf, #28408
        Attached File- Added demo1.pdf, #28409

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code