Pass format argument so that html plotting works with PETSc output files.

This just adds an option format keyword argument to some functions and makes sure that it gets passed through.