How to draw a stacked subplots that share same X axis?

111 visualizaciones (últimos 30 días)
Bangqian Chen
Bangqian Chen el 21 de Sept. de 2015
Respondida: Steven Lord el 18 de Oct. de 2018
I'd like to draw multiple figures that share same X axis. It looks something like the following figures I copied from the website.
It should be notice that no space in Y direction between different figures like the following.

Respuestas (2)

Steven Lord
Steven Lord el 18 de Oct. de 2018
If you're using release R2018b or later, try the stackedplot function.

Jan
Jan el 21 de Sept. de 2015
Did you take a look in the FileExchange already? There are so many submissions concerning subplot that searching for this term will be useful, most likely.
Note, that subplot is actually a simple axes command with automatic positions. You can determine the positions manually, such that the bottom of the upper axes is on the top of the lower one. Simply use the 'Position' property when creating the AXES.
  1 comentario
Abdul Rehan Khan Mohammed
Abdul Rehan Khan Mohammed el 18 de Oct. de 2018
Can you please share the code for this question, I am in the similar situation and have no idea how to do it.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by