'How can I change the backend of the matplotlib library module without matplotlib.use()?

How can I change the backend of the matplotlib library module without this?:

matplotlib.use()

I used to have a tkinter backend by default, and now, after installing pyqt5, the pyqt5 backend is used by default.I want tkinter to be used in backend,because even if I use:

matplotlib.get_backend("TkAgg")

the matplotlib graphic icon is blurry.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source