function tangram_binary (partit)
%TANGRAM_BINARY  Given the partition, show the binary problem.

% copy the shape and color from tangram.m
tg = tangram;

clr = [.3 .3 1; 1 1 1; .96 .96 0]; % -, 0, +

hold on; axis equal; axis off;
for i = 1:length(tg)
    x = tg{i}(1,:); y = tg{i}(2,:);
    sel = sign(partit(i))+2;
    h = patch([x x(1)], [y y(1)], clr(sel,:));
    set(h, 'EdgeColor', 'k', 'LineWidth', 0.01);
end
