I\'m looking at a quick way to paint a function which can be really dense, like this
To do so, I\'m trying to convert a line which is described by an array of points, to