function plottruss( Locations, support, bar ) 
% PLOTTRUSS   Show the truss.  
% 
%  Red dots = free pins 
%  Black dots = Support  (fixed pins) 
%  Blue line = bars 
%
%   Alex Townsend, April 2015 

% Plot the pins: 
plot( Locations(:,1), Locations(:,2), 'r.','markersize', 30), hold on 

% Plot each bar: 
for j = 1:size(bar,1)
    plot( Locations(bar(j,:),1), Locations(bar(j,:),2), 'b-', 'linewidth', 2 )
end

% Plot the fixed pins: 
plot( Locations(support,1), Locations(support,2), 'k.','markersize', 50), hold on 
axis off
axis equal

end