Added line to clear figure before creating new