closed each plot after saving to prevent memory overflow
resized plotting canvas to roughly fit a square