in

Plot 3 lines using plotyy with Different X-axis


I want to draw 3 lines that are related to each other
But when using the code below, the drawing is wrong because the axes are piled on top of each
other .
note the version is R2013a

figure
​hold all
[Hax,hLine5,hLine6] = plotyy(time_data,bo_data,vsze_time,vsze);
​[~,hLine7,hLine8] = plotyy(bo_data,bo_data,hsze_time,hsze);
grid on
set(Hax(1),'YTick',0:150:1000)
​set(hLine5,'LineStyle','-');
set(hLine5,'color','black');
set(hLine6,'LineStyle','-');
​set(hLine6,'color','red');
​set(hLine7,'LineStyle','-');
​set(hLine7,'color','black');
set(hLine8,'LineStyle','-');
​set(hLine8,'color','green');
​title('Energy ,Sze )
​xlabel('t(ms)')
​ylabel(hAx(1),'Energy(MeV)') % left y-axis 
​ylabel(hAx(2),'sze (mm)') % right y-axis



Source: https://stackoverflow.com/questions/70604823/plot-3-lines-using-plotyy-with-different-x-axis

Xiaomi 11i HyperCharge, Xiaomi 11i Launched in India, Check Price and Specifications

an open-source authentication and authorization server providing two-factor authentication