You should not use the figure command inside a loop. Each call to command creates a new figure window. When you call the plot function, it automatically creates a figure window. Your code should look like the following. Please note the the hold on command creates a figure window.
hold on
for i = 1:2
for j = 1:2
plot (x);
end
end
hold off