let intensity = dataSet.cubicIntensity // the path for the cubic-spline let // the path for the cubic-spline let cubicPath = CGMutablePath() let valueToPixelMatrix