read log and draw figure