Added error message in plotting recognition