Adaptation of Ben Bederson's  publication visualization code.