import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]

y = [1, 4, 9, 16, 20]

fig = plt.figure()

fig.add_subplot(111)

plt.scatter(x, y)

plt.show()

找了很多文档, 基本都是粘贴复制,没几个明确指出的,总结了一下:

这些是作为单个整数编码的子绘图网格参数。例如,“111”表示“1×1网格,第一子图”,“234”表示“2×3网格,第四子图”。

 

python 在Matplotlib中,参数在fig.add_subplot(111)中意味着什么?

 

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-09-10
  • 2021-11-10
猜你喜欢
  • 2021-09-19
  • 2022-02-07
  • 2021-06-19
  • 2021-05-26
  • 2022-12-23
  • 2021-12-11
  • 2021-11-05
相关资源
相似解决方案