How hard would it be to write a "shrinkwrap" function that resized the figure to fit the graphics
plus a little bit a white space border.

I find that I have to twiddle a lot to get the plots to fit nicely in the figure. In almost every case
a shrink wrap function that resized the figure to exactly match the maximum extents of the plots plus legends plus labels
plus a little bit of border would be just right.

Is there a straightforward way to find out the max and min extent of everything in the figure?

What I am thinking of, is that the initial figure size would be just a suggestion to bootstrap the plot sizes.
Once all the plotting was done, one could call shrinkwrap and the figure would offset and shrink(expand) to just fit the contents (with a programmable amount of white space all around).


Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"