有时我遇到这样的代码:
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()
的参数是什么意思?
有时我遇到这样的代码:import matplotlib.pyplot as plt x = [1、2、3、4、5] y = [1、4、9、16、25]图= plt.figure() fig.add_subplot(111)plt.scatter(x,y)plt.show()其中...