Cleanup of plotting code

Some work to make the plotting code take advantage of the new object
interface to Paramfiles.