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

2 views (last 30 days)
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 Comment
dpb
dpb on 24 Jul 2014
Edited: dpb on 24 Jul 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')

Sign in to comment.

Accepted Answer

Honglei Chen
Honglei Chen on 24 Jul 2014
Did you try linkaxes? Does that solve your problem?

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!