2015-09-16 3 views
1

Я черчение моих данных какКак увеличить символы легенды?

%% Plot relative wrt to GT for each frame 
XIndx_lsd = linspace(1,592, size(accu_RE_lsdSlam, 1)); 
XIndx_my = linspace(1,592, size(accu_RE_my_method, 1)); 

plot(XIndx_lsd, accu_RE_lsdSlam(:,5), 'r-.') 
hold on 
plot(XIndx_my, accu_RE_my_method(:,5), 'b-') 
AX=legend('rel translation error for Kerl et al.', 'rel translation error for D-EA'); 

xhand = xlabel('Frame#'); 
yhand = ylabel('||trans(E_i)||_2 (in mm)'); 
axis([1 600 0 16]); 

set(gca,'FontSize', 78); 
set(xhand,'fontsize',78) 
set(yhand,'fontsize',78) 

Я могу получить большой размер шрифта. Мой вопрос - как получить большой размер символа. См. Примечание, приведенное ниже.

enter image description here

+0

Есть ли еще что-то не хватает? Если нет, подумайте о принятии ответа. Спасибо! – thewaywewalk

ответ

2

Использование старше answer мой, что наводит на мысль на самом деле Replot символы легенды,

plot(0:10, 0:10, 'b-'); hold on; 
plot(0:10, 10:-1:0, 'r-'); hold on; 

%// Legend Style 
style = @(LineStyle,LineWidth) plot(0,0,LineStyle,'LineWidth',LineWidth,'visible','off') 
AX = legend([style('b-',20),style('r-',20)], {'  Legend entry 2','  Legend entry 1'}, 'box','off'); 

xlim([0 10]); ylim([0 10]); 
xhand = xlabel('Frame#'); 
yhand = ylabel('||trans(E_i)||_2 (in mm)'); 

set(gca,'FontSize', 28); 
set(xhand,'fontsize',28) 
set(yhand,'fontsize',28) 

enter image description here

Смежные вопросы