Was bedeutet das Argument in Matplotlib in fig.add_subplot (111)?

Manchmal stoße ich auf Code wie diesen:

import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]
fig = plt.figure()
fig.add_subplot(111)
plt.scatter(x, y)
plt.show()

Welche produziert:

Ich habe die Dokumentation wie verrückt gelesen, aber ich kann keine Erklärung für die @ find111. manchmal sehe ich ein212.

Was macht das Argument vonfig.add_subplot() bedeuten

Antworten auf die Frage(10)

Ihre Antwort auf die Frage