matplotlib pop-up failure

Answered

Calling show() causes python to quit. This happened after I installed the latest "Big Sur" update on my mac.

5 comments
Comment actions Permalink

Have you tried running your code from the system terminal using the same interpreter to check if the same problem appears?

If it doesn't, please provide a code snippet that can be used for reproducing the issue and specify your Python version.

0
Comment actions Permalink

Yes, the same problem occurs when I run it from terminal. The following code snippet is what I tested with, and python quits when i run it. The version of Python I'm using is Python 3.7

import matplotlib.pyplot as plt
plt.plot([1,2,3],[1,2,3])
plt.show()
1
Comment actions Permalink

Then the issue is not related to IDE.

Is it a system interpreter?
Try creating a virtualenv and see if the problem remains.

0
Comment actions Permalink

Hi, did you get any solution to this? I am having the same issue.

0
Comment actions Permalink

The problem is fixed after i updated matplotlib to version 3.3.3.

0

Please sign in to leave a comment.