python设置子图的大小_python – 设置相同大小的子图(或gridspec)
我使用gridspec绘制两个数字:fig = plt.figure(num=2,figsize=(5,2))gs = gridspec.GridSpec(1, 2, width_ratios=[1,1])ax0 = plt.subplot(gs[0])ax1 = plt.subplot(gs[1])ax0.imshow(ROI,'gray')map1 = ax1.imshow(z,cmap=cm...