2

By the appearance of matplotlib, I guess it is using PyQt; but when I looked into the code of it, I didn't find it importing any GUI library at all. So, what exactly does matplotlib use to show the graph (for example, the window when calling plt.show())?

1

1 Answer 1

6

You can tell which backend matplotlib is using with the get_backend() method:

matplotlib.get_backend()

You can see a list of all available backends with rcsetup.all_backends:

matplotlib.rcsetup.all_backends
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.