I am initializing empty figure when executing plt.figure(). It openes fine. But as soon as I have the following code implemented opened graph gets not responding. Any idea why this window is getting not responding?
import matplotlib.pyplot as plt
plt.figure() # It opens graph fine
with open("data.txt") as file_data:
while True:
pass