标签:str div tla matlab alt marker 14. http atl
Income=[2456,2032,1900,2450,2890,2280]; Profit_margin=[12.5,11.3,10.2,14.5,14.3,15.1]/100; t=1:6; [AX,H1,H2]=plotyy(t,Income,t,Profit_margin,‘bar‘,‘plot‘); % set(get(AX(1),‘Ylabel‘),‘String‘,‘Left-axis‘); % set(get(AX(2),‘Ylabel‘),‘String‘,‘Right-axis‘); ylabel(AX(1),‘left y-axis‘) % left y-axis ylabel(AX(2),‘right y-axis‘) % right y-axis % set(H1,‘BarWidth‘,0.6,‘EdgeColor‘,[1,0,0],‘FaceColor‘,[1 1 0.4745]); % set(H2,‘LineWidth‘,2,‘Marker‘,‘o‘,‘MarkerEdgeColor‘,[1,0,0],‘MarkerFaceColor‘,[1 1 0.4745]); H1.BarWidth=0.6; H1.EdgeColor=[1,0,0]; H1.FaceColor=[1 1 0.4745]; H2.LineWidth=2; H2.LineStyle = ‘--‘; H2.Marker=‘o‘; H2.MarkerEdgeColor=[1,0,0]; H2.MarkerFaceColor=[0 0 0];
标签:str div tla matlab alt marker 14. http atl
原文地址:https://www.cnblogs.com/Airboy1/p/9532199.html