用matlab 画图时,发现线太多,生成的图例,遮盖了曲线。于是想画成多个图例,然后可以自由拖动。
废话不多说,1)代码; 2)效果。
%%%%%%%%%%%% Code:
figure
%% ---- plot for maxtries performance
set(0,'DefaultTextFontName','Times',...
'DefaultTextFontSize',16,...
'DefaultAxesFontName','Times',...
'DefaultAxesFontSize',12,...
'DefaultLineLineWidth',1,...
'DefaultLineMarkerSize',6);
% set(gcf,'Units','inches','Position',[0 0 6.0 4.0]);
% ======================= trace_1:
% --- 1 UB_ratio_EMF_10_A_trace_1
h10_1_tr1=plot(X_items, UB_ratio_EMF_10_A_trace_1, '-pk');
hold on
% --- 2 Real Ratio
h10_2_tr1=plot(X_items, Ratio_EMF_10_over_OP