Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Eliminating unnecessary whitespace
Posted:
Sep 17, 2007 11:37 PM


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 http://nibotlab.livejournal.com/73290.html)
thanks, Tobin



