analyze saves an output figure