MyColours={[0, 0.4470, 0.7410], [0.8500, 0.3250, 0.0980],[0.9290, 0.6940, 0.1250],[0.4940, 0.1840, 0.5560] , [0.4660, 0.6740, 0.1880], [0.3010, 0.7450, 0.9330],[0.6350, 0.0780, 0.1840], [0, 0, 1],[0, 0.5, 0], [1, 0, 0], [0, 0.75, 0.75],[0.75, 0, 0.75],[0.75, 0.75, 0],[0.25, 0.25, 0.25],'y','m','c','g','k'};
xlabelJK='voltage [V]';
ylabelJK='current [A]';
diagramname='Power Delivery'
V_PD30=[5,5,NaN, 9 ,9,NaN,15 ,15,NaN,20 ,20]
A_PD30=[0,3,NaN,15/9,3,NaN,27/15, 3,NaN,45/20, 5]
V_PD30PPS=[3.3,21,NaN,3.3,21]
A_PD30PPS=[3 , 3,NaN,5 , 5]
V_PD31=[ 28 ,28,NaN, 36 ,36,NaN, 48 ,48]
A_PD31=[100/28, 5,NaN,140/36, 5,NaN,180/48, 5]
V_PD31AVS=[21,48]
A_PD31AVS=[ 5, 5]
V_SUPERVOOC=[20,20]
A_SUPERVOOC=[ 5,12]
hold on
grid on
xlabel(xlabelJK);
ylabel(ylabelJK);
title(diagramname,'Interpreter','none')
bbb.XAxisLocation = 'origin';
bbb.YAxisLocation = 'origin';
xticks([0 5 9 12 15 20 28 36 48])
yticks(0 : 12)
plot(V_PD30 ,A_PD30 ,'LineStyle','-','Marker','none','LineWidth',1.5,'Color',MyColours{1});
plot(V_PD30PPS,A_PD30PPS,'LineStyle','-','Marker','none','LineWidth',1.5,'Color',MyColours{2});
plot(V_PD31 ,A_PD31 ,'LineStyle','-','Marker','none','LineWidth',1.5,'Color',MyColours{3});
plot(V_PD31AVS,A_PD31AVS,'LineStyle','-','Marker','none','LineWidth',1.5,'Color',MyColours{4});
plot(V_SUPERVOOC,A_SUPERVOOC,'LineStyle','-','Marker','none','LineWidth',1.5,'Color',MyColours{5});
text(5, 3, "15W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(9, 3, "27W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(15, 3, "45W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(20, 3, "60W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(20, 5, "100W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(28, 5, "140W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(36, 5, "180W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(48, 5, "240W", "horizontalalignment", "center", "verticalalignment", "baseline");
text(20, 12, "240W", "verticalalignment", "top");
legend('Power Delivery 3.0','Power Delivery 3.0+PPS','Power Delivery 3.1','Power Delivery 3.1+AVS','proprietary smartphones','Location','northeast')
print('-dsvg',strcat(diagramname, '-pre-translate.svg'))