Since `axisx.p2c(x1) + xoffset + axisx.p2c(x2) + xoffset` is calculated twice, maybe it should be cached in a var (if it is an expensive operation)