added plot to seizure detection