有时我遇到这样的代码:
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()
Run Code Online (Sandbox Code Playgroud)
哪个产生:
我一直在疯狂阅读文档,但我无法找到解释111
.有时我看到了212
.
这个论点fig.add_subplot()
意味着什么?