Added generatePathFromPlot() to generate UIBezierPath objects from any generate y(x) function