from matplotlib import pyplot as plt
/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680:
MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
not cbook.is_string_like(colors[0]):
Now it's showing this error.
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/home/rishabh/.local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache