fixed legend off axis plot