1
我似乎無法獲得子圖之間的水平差距消失。有什麼建議麼?matplotlib:刪除軸之間的水平間隙?
代碼:
plt.clf()
fig = plt.figure()
for i in range(6):
ax = fig.add_subplot(3,2,i)
frame_range = [[]]
ax.set_xlim(-100000, 1300000)
ax.set_ylim(8000000, 9100000)
ax.set_aspect(1)
ax.set_xticks([])
ax.set_yticks([])
ax.set_frame_on(False)
ax.add_patch(dt.PolygonPatch(provs[0],fc = 'None', ec = 'black'))
fig.tight_layout(pad=0, w_pad=0, h_pad=0)
plt.subplots_adjust(wspace=0, hspace=0)
plt.savefig(wd + 'example.png')
例子貼都爲這個代碼,並與蜱和幀留在
可能重複[如何matplotlib次要情節之間移除差距?](http://stackoverflow.com/questions/20057260/how-to-remove-gaps-between-subplots -in-matplotlib) – cphlewis