Use canvas when drawing points instead of a function.