function h = plot_bar(x,y,color)

% h = plot_car(x,y,theta,size)
%
% (x,y): position of car
% theta: counterclockwise angle from x-axis
% size: scalar factor for size of car (size<1 smaller, size>1 bigger, defoult size=1) 
% color: color of car
% h:  handle to plot 

% position of triangle vertices

if nargin <3
    color = 'black';
    
end


h = patch(x,y,color);