Create variable loc_ext to handle position of external legend
Create variable loc_ext to handle position of external legend