improvements to PrettyFig