x=0.0:0.05:0.6;%x轴上的数据,第一个值代表数据开始,第二个值代表间隔,第三个值代表终止
a=[0.,0.30651361,0.51266012,0.62540159,0.68102461,0.71626568,0.73792572,0.74850986,0.76036923,0.76536411,0.76785833,0.77014056,0.77311378]; %a数据y值-associative-embadding
a1=[0.,0.11259292,0.39307635,0.50202066,0.53868158,0.55395703,0.57877339,0.57877339,0.60665465,0.60665465,0.60665465,0.62022231,0.62022231];%a数据y值-planenet
%b=[334.4,143.2,297.4,487.2,596.2]; %b数据y值
% plot(x,a,’-ob’,‘linewidth’,2); %线性,颜色,标记
plot( x, a, ‘-ob’,‘LineWidth’,1,‘MarkerSize’,4,‘MarkerFaceColor’,‘b’);
hold on
plot( x, a1, ‘-og’,‘LineWidth’,1,‘MarkerSize’,4,‘MarkerFaceColor’,‘g’);
axis([0,0.6,0,0.8]) %确定x轴与y轴框图大小
set(gca,‘XTick’,[0:0.1:0.6]) %x轴范围1-6,间隔1
set(gca,‘YTick’,[0:0.2:0.8]) %y轴范围0-700,间隔100
%legend(‘Neo4j’,‘MongoDB’); %右上角标注
legend(‘Asscociatte’,‘PlaneNet’); %右上角标注
xlabel('DEPTH THRESHOLD ') %x轴坐标描述
ylabel(‘PER-PIXEL RECALL %’) %y轴坐标描述
%text(x,a,‘o’,‘color’,‘g’)
结果如图:
觉得有帮助的话,鼓励一下吧。