since this function was only recently added it seems ok to change the order of args; it also makes sense to put the degree limit next to the x argument.