Use BytesIO to test plot savefig() without touching the disk
This PR modifies all tests to use BytesIO()
when testing saving images, so that we never actually write anything to the filesystem.
This PR modifies all tests to use BytesIO()
when testing saving images, so that we never actually write anything to the filesystem.