Speed up function graphs which are undefined in an interval.