Create callback function and error when copying
Use directly the OpenGL interface for plotting points without memory leak. Set number of points to 100000.
Put context as attribute