Matplotlib - Interactive Features
What is wrong with this interactive plot code?
import matplotlib.pyplot as plt
plt.ion()
fig, ax = plt.subplots()
ax.plot([1, 2, 3], [1, 4, 9])
plt.show()
ax.set_title('My Plot')