Added valueerror catch in textplot
Merge pull request #2068 from catchmrbharath/textplotfix

Fix 3795