function grafy

x=-10.001:0.3:10
y1=sin(x)./x
y2=besselj(1,x)./x


figure(1)
plot(y1)
axis 'tight'  
g=gcf();
set(g,'PaperSize',[4,3])
set(g,'PaperPosition',[0,0,4,3])
print -djpg plot1.jpg

figure(2)
plot(x,y1,"+",x,y2,".")
axis 'tight'
g=gcf();
set(g,'PaperSize',[4,3])
set(g,'PaperPosition',[0,0,4,3])
print -djpg plot2.jpg

figure(3)
x=-10.001:1:10
y1=sin(x)./x
chyba=rand(1,length(x))/10
h=errorbar(x,y1,chyba,"o");
set(h,'markersize',3)
set(h,'markerfacecolor','b');
xlim([-0.5,11])
ylim('manual')
ylim([-0.5,1.2])
g=gcf();
set(g,'PaperSize',[4,3])
set(g,'PaperPosition',[0,0,4,3])
print -djpg plot3.jpg

endfunction
