function plot2DPlane(x1,x2,y1,y2,h_newfig)

if h_newfig
    figure;
    set(gcf,'position',[500,100,1000,650])
    set(gcf,'color','w');
end
set(gca,'visible','off')
mArrow2(x1,0,x2,0,{'color','k'});
mArrow2(0,y1,0,y2,{'color','k'});
xlim([x1 x2])
ylim([y1 y2])

for i = (x1+1):(x2-1)
    line([i i],[-0.05 0.05],'color','k')
    if i<=0
        t= text(i-0.2, -0.3,num2str(i));
    else
        t= text(i-0.05, -0.3,num2str(i));
    end
    t.FontSize=15;
    
end

for i = (y1+1):(y2-1)
    line([-0.05 0.05],[i i],'color','k')

    if i<0
        t = text(-0.4, i,num2str(i));
    elseif i>0
        t = text(-0.3, i,num2str(i));
    end
    t.FontSize = 15;
end
t = text(x2*0.9,0.3,'x');
t.FontSize = 15;
t = text(0.2,y2*0.9,'y');
t.FontSize = 15;
axis square
