plotting legend and title tags