Я использую set(gca,'LineWidth',2)
в своем коде Figure и получаю два изображения.Исходное изображение такое же, но второе просто имеет ось шириной 2. Мой код выглядит следующим образом:
clc; clear all ;
set(gca,'LineWidth',2)
figure('DefaultAxesFontSize',30);
set(0,'DefaultAxesFontName',' Times ');
hold on
x1 =10:10:3000;
% % ---------- reading data -------%
arrival_rate = xlsread('scep.xlsx', 'comparing_thoughput_for123', 'A3:A10');
one_stream = xlsread('scep.xlsx', 'comparing_thoughput_for123', 'B3:B10');
two_stream = xlsread('scep.xlsx', 'comparing_thoughput_for123', 'C3:C10');
x2 = interp1(arrival_rate,one_stream,x1,'pchip') ;
x3 = interp1(arrival_rate,two_stream,x1,'pchip') ;
% plotting throughput
% ------scep qos1 one_stream ------
plota = plot(x1,x2,'r-','DisplayName', ' Single Stream ', 'LineWidth',1);
plot(arrival_rate,one_stream,'ro', 'HandleVisibility','off','LineWidth',2);
% ------scep qos1 two_stream ------
plot(x1,x3,'b-','DisplayName', ' Two Streams ', 'LineWidth',1);
plot(arrival_rate,two_stream,'bs', 'HandleVisibility','off','LineWidth',2);
xlabel('\lambda (events/second)')
ylabel('Thoughput (events/second)')
legend('Location','northwest')
legend show
% title('Effect of arrival rate on average CEP throughput')
% set(gcf, 'LineLineWidth', 2);
set(gcf, 'PaperUnits', 'normalized');
set(gcf, 'PaperPosition', [0 0 1 1]);
set(gcf,'PaperOrientation','l');
print -dpdf graphs/comparing_thoughput ;
Что я делаю не так?