【发布时间】:2015-07-22 09:33:00
【问题描述】:
我有一个图,我想在 2 个子图中绘制一个 3d 散点图和一个正常图。 我用这个代码
fig = plt.figure(1)
ax = fig.add_subplot(211, projection='3d')
ax2 = fig.add_subplot(212)
然后我使用 ax 和 ax2 将我的数据绘制在正确的位置。但是我得到的图太小了,怎么把它变大呢,第一行加figsize=(w, h)没有任何作用,加到第二行或者第三行会报错:
AttributeError: 'Axes3DSubplot' 对象没有属性 'set_figsize'
【问题讨论】:
标签: python matplotlib