plotting threshold