Can't get the same Y-Axis for every Subplot

3 visualizzazioni (ultimi 30 giorni)
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 Commento
dpb
dpb il 24 Lug 2014
Modificato: dpb il 24 Lug 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')

Accedi per commentare.

Risposta accettata

Honglei Chen
Honglei Chen il 24 Lug 2014
Did you try linkaxes? Does that solve your problem?

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by