Matplotlib - Performance and Large Data
Identify the error in this code snippet:
import matplotlib.pyplot as plt
for i in range(5):
fig = plt.figure()
plt.plot([1,2,3], [4,5,6])
plt.close(fig)