function createfigure2(X1, Y1)
%CREATEFIGURE2(X1, Y1)
%  X1:  vector of x data
%  Y1:  vector of y data
% tady konci help

%  Auto-generated by MATLAB on 20-Apr-2015 09:56:20

% Create figure
figure1 = figure('Color',[1 1 1]);

% Create axes
axes1 = axes('Parent',figure1,'YGrid','on','XGrid','on');
box(axes1,'on');
hold(axes1,'all');

% Create plot
plot(X1,Y1,'LineWidth',20,'LineStyle',':','Color',[1 0 0]);

% Create plot
plot(Y1,X1);

% Create title
title('Titulek','FontSize',24);

% Create arrow
annotation(figure1,'arrow',[0.537974683544304 0.341772151898734],...
    [0.612034623217923 0.329938900203666],'HeadLength',25,'HeadWidth',25);

% Create textbox
annotation(figure1,'textbox',...
    [0.552537070524412 0.446028513238289 0.310030741410488 0.289205702647655],...
    'String',{'Tady je sipka'},...
    'FontWeight','bold',...
    'FontSize',30,...
    'FontName','Perpetua',...
    'FitBoxToText','off');

