Oops. Copied that over from `qwt` formula, so must be wrong there as well.