The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Eliminating unnecessary whitespace
Replies: 4   Last Post: Mar 10, 2013 1:07 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tobin Fricke

Posts: 38
Registered: 12/7/04
Eliminating unnecessary whitespace
Posted: Sep 17, 2007 11:37 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In an attempt to eliminate the "extra" whitespace in a figure, I've tried
eliminated the space between the "position+tightinsert" of the axes and
its "outerposition"*:

set(gca, 'Position', get(gca, 'OuterPosition') - ...
get(gca, 'TightInset') * [-1 0 1 0; 0 -1 0 1; 0 0 1 0; 0 0 0 1]);

This seems to work well, with the side effect that Matlab changes
'OuterPosition' to some new value involving negative numbers. I've tried
setting 'ActivePositionProperty' to both 'position' and 'outerposition'
but both settings seem to have the same effect; when I set the position
property, the ActivePositionProperty gets changed back to 'position'.

How can I prevent Matlab from changing 'OuterPosition' in this case?

* (see also


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.