x-axes are not coincident using multiple axes
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mos_bad
el 19 de Jul. de 2019
Respondida: Adam Danz
el 19 de Jul. de 2019
I am using multipe axes using the code below. The top x-axis is not coincident as shown in attached file.
ax2=axes('xaxislocation','top','yaxislocation','right','color','none', 'xscale', 'log', 'yscale', 'log');
4 comentarios
Adam Danz
el 19 de Jul. de 2019
Great! I'll move my comment to the answers section to the question is marked answered.
Respuesta aceptada
Adam Danz
el 19 de Jul. de 2019
(Copied from comments section)
I'm wondering the same thing Jan asked. It should look something like this:
ax2 = axes(...,'Position',ax1.Position,...)
But that alone wont' align the two sets of x-ticks. You'll need to use xlim() to control the x axis limits and you'll need to set the xtick using set(h,'XTick', ...) to ensure there are the same number of ticks on each axis.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!