Save plots to a file.