在Matplotlib中,参数在fig.add_subplot(111)中意味着什么?
有时我遇到这样的代码:
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()
哪个产生:
我一直在疯狂阅读文档,但我无法找到解释111
。有时我看到了212
。
这个论点fig.add_subplot()
意味着什么?
缥缈止盈
倚天杖
相关分类