How to plot images with different sizes in one figure?
27 visualizaciones (últimos 30 días)
xiaojuezi el 4 de Jul. de 2020
I have 5 images and I would like to plot them like:
fig3 fig4 fig5
i.e. I would like to have two rows, the first row does something like;
and the second row:
If I use span, the first row is not centered. If I use subplot I could only have 2x3 grid, are there anyway to achieve this ?
Image Analyst el 4 de Jul. de 2020
The first argument to subplot needs to be 2 because there are 2 rows. The layout is this:
For the first two plots, the second argument is 2 because there are 2 columns, and the third argument will be 1 and 2.
For the next row, you also have 2 rows. The layout for subplot(2, 3,n) is this
1 2 3
4 5 6
So you need to put the images into slots 4, 5, and 6 because you want them in the second row, not the first row. Here is the corrected code.