Plots the given function onto the canvas
Function:
The amount of points to draw:
The left border of the function:
The right border of the function: