Commented the logic for auto/manual plot