You need to create a nydata variable before you can insert things into it or index it. Try putting this line near the top of your code: nydata=[] Cheers, Chris Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.