plot (rand (3,4));
legend ({'a','b','c','d'}, 'location', 'north', 'orientation', 'horizontal')
print legend.png

