function z=plot_2dcubes(infile);

figure();
colormap([1 1 1; 0 0 0]);

z=load(infile);

x=z(:,1)+1;
y=z(:,2)+1;

xmax=max(x)-1;
ymax=max(y)-1;

for i=1:length(x), c(x(i),y(i))=255; end;

image([0.5 xmax+0.5],[0.5 ymax+0.5],c);