Matplotlib WIndow Not responding when loop is initialized
The while True: loop will be causing the python interpreter to think there's something more to do. It will remain unresponsive until it 'finishes' that loop, which it will never do. Remove the Loop or replace pass with break