Added more options for legend location. Added "tight_layout()" to figure to avoid cropping of axes labels