no longer passes xerr and yerr keywords when they are None