MATLAB画图坐标轴

来源:互联网 发布:变声 软件 编辑:程序博客网 时间:2024/05/10 07:14
%x1=[0.1,0.2,0.30,0.40,0.50];
%y1=[0.9,0.8,0.7,0.6,0.4];


x1=[0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7];
y1=[1,1,1,1,1,1,1,1,0.95,0.9,0.85,0.7,0.44,0.4];
%plot(x1,y1,'<g');
% x1=[0.04,0.08,0.12,0.16,0.2,0.24,0.28,0.32,0.36,0.4,0.44,0.48,0.52,0.56,0.6,0.64,0.68,0.72];
% y1=[1,1,1,1,1,1,1,1,1,1,1,1,0.98,0.96,0.92,0.85,0.65,0.4];
% x1=[0.04,0.08,0.12,0.16,0.2,0.24,0.28,0.32,0.36,0.4,0.44,0.48,0.52,0.56,0.6,0.64,0.68,0.72];
% y1=[1,1,1,1,1,1,1,1,1,1,0.99,0.98,0.96,0.95,0.90,0.80,0.62,0.38];
 x1=[0.03,0.06,0.09,0.12,0.15,0.18,0.21,0.24,0.27,0.3,0.33,0.36,0.39,0.42,0.45,0.48,0.53,0.6];
 y1=[0.90,0.89,0.75,0.65,0.6,0.46,0.4,0.33,0.31,0.23,0.1,0.08,0.066,0.05,0.040,0.03,0.02,0.01];


plot(x1,y1,'color','g','Marker','s','Markerfacecolor','g','markeredgecolor','g');
grid on;
set(gca,'ytick',[0:0.1:1]);
set(gca,'xtick',[0:0.1:1]);
axis([0 0.8 0 1]);
xlabel('召回率','FontName','Times New Roman','FontSize',13);
ylabel({'精度'},'FontName','Times New Roman','FontSize',13,'Rotation',90);
%title('class : sofa , AP=0.65');
title('class : sofa , AP=0.20');


hold off;
0 0
原创粉丝点击