analyse saves an output figure