How to plot four subfigures in one figure? Rather than subplot
Mostrar comentarios más antiguos
Dear all
I want to draw a figure like this. Four subfigures merged into one figure. They are separated by a dashed line. Line 1 to 4 are imported. And X-axis is 0-2 repeatably. Could you please give me any hint? Thanks

4 comentarios
KSSV
el 4 de Abr. de 2019
With hold on, and managing the xlabels, xticks this can be achieved.
dpb
el 4 de Abr. de 2019
It can also be done by creating multiple axes and position them and controlling their properties.
Either approach, however, is some effort.
Might search the FEX to see if somebody has already done so and posted their efforts...
I would go for the multiple axes approach myself, though if they are right next to each other you will have problems with those x labels where you want both a '2' for the end of one and a '0' for the start of the other. I guess you can miss of the '2' labels (or equivalently the '0' labels') and use the XTickLabel property for the 0 of each axes to change it to '2/0' as you have in your picture if you wish.
dpb
el 4 de Abr. de 2019
Yeah, the tick labels will have to be written manually to look like that...which will mean writing callback routines if want any of the dynamic stuff to work with changes in xlim, zoom, etc., ...
To do it to make one figure for presentation isn't too terrible but "to do it right" would be a lot of effort, unfortunately.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Axes Appearance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
