I'm fed up with matplotlib in that it's so hard to plot images in specified size.
I've two images in 32*32, 20*20 sizes. I just want to plot them in its original size, or in proportion to its original size.
After reading quite a few posts at SO, the code I'm using now is
plt.autoscale(False)
plt.subplot(1, 2, 1);
plt.imshow(img_blob[0, 0, :, :], cmap='gray',interpolation='nearest', extent=[0, 32, 0, 32])
plt.subplot(1, 2, 2);
plt.imshow(output_blob[0, 0, :, :], cmap='gray',interpolation='nearest', extent=[0, 20, 0, 20])
plt.show()
But the two images are still displayed in the same size.
I've tried figsize
plt.subplot(1, 2, 2, figsize=(2.0, 2.0));
But apparently there's no figsize attribute.
Is it possible to make the two subplots in different size?