Code covered by the BSD License
22 Jun 2009
Shrinks the length of the legend lines.
Watch this File
legendshrink reduces the amount of horizontal space taken up by a figure legend by reducing the length of lines. (Best results when the legend box is off.)
This is important for small plots because the size of the lines is
constant irrespective of the physical size of the figure. Only works
for vertical legends, for now.
Works nicely (when used with legend box off), but unfortunately it does not work when printing a figure. With print preview, the legend is set back to the way it looks without legendshrink.
I'd prefer to leave the legend box on. Is there any way of shrinking the box as you shrink the lines?
Excellent little script. Did exactly what I needed it to do for a small figure.