I went back and figured out how to do this picture that I had done when this was just an extension of a desktop. now I got it to work with the arduino. I had to do it in two steps. first one program writes the xy data points to the EEPROM memory. then another program reads them and plots them.