test_plot.py: Cleanup temporary files after test completion

This patch will cleanup the files created during the test.