correct margin for rx plot