Computer scienceData scienceInstrumentsVisualizationMatplotlib overview

Introduction to matplotlib

Managing Figure objects

Report a typo

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()
Enter a number
___

Create a free account to access the full topic