Can't get the same Y-Axis for every Subplot
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Panda
el 24 de Jul. de 2014
I have 3 loglog-subplots in one Figure. The plotboxes have the same size, the limits are the same, everything is fine. Except the scaling of the y-Axis: It still goes from 0 to 100 but the steps are different. For example in the first plot 10 is in the middle of the y-Axis, in the second at 60% of the y-Axis and in the third at 75%. But i want the y-axis to be exactly the same in each plot (f.i. 10 always at the middle of the y-axis). To clarify: -i dont need help with the limits (xlim,ylim) -i dont need help with the ticks displayed (xtick, etc..) -i need help with the distance between the ticks. All 3 y-axis have to be the SAME.
1 comentario
dpb
el 24 de Jul. de 2014
Editada: dpb
el 24 de Jul. de 2014
If the limits are the same and the number of ticks and tick values are the same, the spacing must be the same...
Either attach a figure that shows the issue or better yet, a small sample case that can be cut 'n pasted that generates the problem.
ADDENDUM
Or, simpler probably, show us the results of
get(gca,'yscale')
get(gca,'ytick')
Respuesta aceptada
Honglei Chen
el 24 de Jul. de 2014
Did you try linkaxes? Does that solve your problem?
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots 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!