changed to xy plotting from opengl