Fix exception when plotting large floating point values.