function plotrectangle(X,Y,element_params)

width=element_params(1);
height=element_params(2);

rectangle('Curvature',[0,0],'Position',[X-width/2,Y-height/2,width,height],'FaceColor','k')


