prepLegend function

Function for arranging plotting layout to accomodate a legend panel