I have two comments: 1. I don't see anywhere that the variable 'r' is initialized. Are you leaving out some code? If it wasn't, it could be zero, and nothing would plot. 2. Have you stepped through the code to verify that the x and y coordinates are on the screen and correct? Blake