How many open figure windows will the following code generate?
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
plt.close()
for i in range(10):
plt.figure(i)
plt.close(1)
plt.show()How many open figure windows will the following code generate?
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
plt.close()
for i in range(10):
plt.figure(i)
plt.close(1)
plt.show()Create a free account to access the full topic