%-- Note: any line starting with a "%" is a COMMENT (same as in [La]TeX).
clear;
hold off;
load db.dat; % Read the data from file db.dat to the matrix "db".
D=db(:,1);x=db(:,2);dxp=db(:,3);dxm=db(:,4);y=db(:,5);dyp=db(:,6);dym=db(:,7);
%% r=D;g=D;b=D/3;r(:)=0;g(:)=0;plot(x,y,'color',[r g b]);
x1=x(1:3);y1=y(1:3); x2=x(4:4);y2=y(4:4); x3=x(5:8);y3=y(5:8); 
%% Lines commented with a single % below are MatLab commands. 
errorbar(x,y,dxm,dxp,dym,dyp,"~>");
hold on;
plot(x1,y1,'linestyle','none','marker','o','color','r','markersize',8);
% plot(x1,y1,'@14;;');
plot(x2,y2,'linestyle','none','marker','^','color','b','markersize',10);
% plot(x2,y2,'@22;;');
plot(x3,y3,'linestyle','none','marker','v','color','g','markersize',10);
% plot(x3,y3,'@33;;');
title('Just Some Typical Data','fontsize',22,'fontweight','bold');
% title('Just Some Typical Data');
xlabel('Independent Variable "X"','fontsize',22);
% xlabel('Independent Variable "X"');
ylabel('Dependent Variable "Y"','fontsize',22);
% ylabel('Dependent Variable "Y"');
x0=[0,0];xR=[min(x-2*dxm),max(x+4*dxp)];
y0=[0,0];yR=[min(y-2*dym),max(y+3*dyp)];
line(xR,y0,'linestyle','- -');
line(x0,yR,'linestyle','- -');
hold off;
print -deps plot.eps;
