'Figure' object has no attribute '_original_dpi'
While running kwant, it is giving the following error. Even if I import matplotlib, the error is same. Please Help me out
lattice_model.py:75: RuntimeWarning: Kwant's plotting functions have
the side effect of selecting the matplotlib backend. To avoid this warning,
import matplotlib.pyplot, matplotlib.backends or call matplotlib.use().
fig=kwant.plot(syst)
Traceback (most recent call last):
File "/home/vivekananda/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", >line 68, in paintEvent
>self._update_figure_dpi()
File "/home/vivekananda/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line >230, in _update_figure_dpi
>dpi = self._dpi_ratio * self.figure._original_dpi
AttributeError: 'Figure' object has no attribute '_original_dpi'
Aborted (core dumped)