matplotlib: Use 'test do' so no temp files left behind