get axes to line up when first has set(ax1,'l​ooseinset'​,get(ax1,'​tightinset​'))

4 views (last 30 days)
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)

Answers (0)

Categories

Find more on Two y-axis 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!