scrnsize=get(0,'ScreenSize');
figX=1;
figY=scrnsize(4);
figW=round(0.5*scrnsize(3));
figH=round(3*figW/4);
figure1 = figure;
axes1 = axes('Parent',figure1);
set(axes1,'FontName','Arial','FontSize',24,'LineWidth',1.5);
hold(axes1,'on');
set(figure1, 'Position', [figX, figY, figW, figH]);
plot1 = plot(X,Y,'Parent',axes1,'LineWidth',2,'Color',[0 0 0]);
set(plot1(1),'DisplayName','Numerical Derivative',...
'MarkerSize',20,'Marker','o',...
'LineWidth',0.5,'LineStyle',':','Color',[0.25 0.25 0.25]);
set(plot1(2),'DisplayName','Functional Fit');
xlabel('Time (s)');
ylabel('Velocity (m/s)');
legend1 = legend(axes1,'show');
set(legend1,'Position',[0.65 0.15 0.20 0.15],'FontSize',20,...
'EdgeColor',[1 1 1]);
xlim(axes1,[0 ceil(max(X))]);
ylim(axes1,[floor(min(min(Y))) ceil(max(max(Y)))]);