get axes to line up when first has set(ax1,'looseinset',get(ax1,'tightinset'))
Ältere Kommentare anzeigen
i'm producing plots that will have 2 y-axes. to reduce whitespace in my subplots in a figure i've done: set(ax1,'looseinset',get(ax1,'tightinset')); this works well to reduce the extra space between tightinset and outerposition, i believe. however, i can't get the second axis to line up with the first axis after setting that. i've tried:
set(ax2,'position', get(ax1,'Position')) which is closest i've tried:

same with outer position (which wont' always be correct since labels, etc will be different)
1 Kommentar
Sean de Wolski
am 8 Dez. 2011
This may be simple, but, why not just use plotyy?
Antworten (0)
Kategorien
Mehr zu Two y-axis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!