%-- Note: any line starting with a "%" is a COMMENT (same as in TeX).
clear;
load db.dat;
D=db(:,1);x=db(:,2);ux=db(:,3);lx=db(:,4);y=db(:,5);uy=db(:,6);ly=db(:,7);
%% r=D;g=D;b=D/3;r(:)=0;g(:)=0;plot(x,y,'color',[r g b]);
plot(x,y,'LineStyle','none','Marker','o');
hold on;
title('Just Some Typical Data','FontSize',16,'FontWeight','bold');
xlabel('Independent Variable "x"','FontSize',16);
ylabel('Dependent Variable "y"','FontSize',16);
linecol=[0 0 0];errorcol=[0 0 0];
errorbarxy(x,y,lx,ly,ux,uy,linecol,errorcol);
x0=[0,0];xR=[min(x-2*lx),max(x+4*ux)];
y0=[0,0];yR=[min(y-2*ly),max(y+3*uy)];
line(xR,y0,'LineStyle','--');
line(x0,yR,'LineStyle','--');
hold off;
