function [] = plotData(Xl, Yl, Xu, Yu)

hold on;

if size(Xl,2) == 3
    
    Ipos = find(Yl >= 0);
    Ineg = find(Yl < 0);
    plot3(Xl(Ipos,1), Xl(Ipos,2), Xl(Ipos,3), 'ro', 'markersize', 14, 'linewidth', 3, 'markerfacecolor', 'r', 'color', 'k');
    plot3(Xl(Ineg,1), Xl(Ineg,2), Xl(Ineg,3), 'bs', 'markersize', 14, 'linewidth', 3, 'markerfacecolor', 'b', 'color', 'k');

    Ipos = find(Yu >= 0);
    Ineg = find(Yu < 0);
    plot3(Xu(Ipos,1), Xu(Ipos,2), Xu(Ipos,3), 'ro', 'markersize', 4, 'linewidth', 2);
    plot3(Xu(Ineg,1), Xu(Ineg,2), Xu(Ineg,3), 'bs', 'markersize', 4, 'linewidth', 2);
    
elseif size(Xl,2) == 2

    Ipos = find(Yl >= 0);
    Ineg = find(Yl < 0);
    plot(Xl(Ipos,1), Xl(Ipos,2), 'ro', 'markersize', 14, 'linewidth', 3, 'markerfacecolor', 'r', 'color', 'k');
    plot(Xl(Ineg,1), Xl(Ineg,2), 'bs', 'markersize', 14, 'linewidth', 3, 'markerfacecolor', 'b', 'color', 'k');

    Ipos = find(Yu >= 0);
    Ineg = find(Yu < 0);
    plot(Xu(Ipos,1), Xu(Ipos,2), 'ro', 'markersize', 4, 'linewidth', 2);
    plot(Xu(Ineg,1), Xu(Ineg,2), 'bs', 'markersize', 4, 'linewidth', 2);
    
end

axis equal;
