Matplotlib produces overflow error for too many samples

o If data contains more than 10,000 samples,
  matplotlib_widget down-samples to around 10,000, and prints a warning
Changing print statements to Python 3

print x  ->  print(x)