change figure size and legend position