function plotyyproblem f = figure(); ax = axes(f,'units','pixels','position',[50 50 300 300]); h = plotyy(ax,rand(5,1),rand(5,1),rand(5,1),rand(5,1)); disp(['Y1 units = ',get(h(1),'units')]) disp(['Y2 units = ',get(h(2),'units')]) end