2008年02月09日 星期六 11:38
¸÷λÐֵܽãÃÃÃÇ£¬ÏÈ×£´ó¼ÒÐÂÄê¿ìÀÖ¡£ÍòʼªÏ飡 Èç¹ûÓÐʱ¼ä£¬°ïÎÒÏëÏëÕâ¸öÎÊÌâ°É¡£ÏÈл¹ýÁË :-) ÎÒÏëÓÃpythonµÄmatplotlib»Ò»¸öÉ¢µãͼ¡£ÓÐÒÔÏÂÌõ¼þ£º 1.È總¼þµÄÊý¾ÝÎļþ£¬µÚÒ»ÁÐΪx£¬µÚ¶þÁÐΪy,µÚÈýÁÐΪ×÷ͼÌõ¼þ¡£µ±µÚÈýÁеÄֵΪ15ʱ£¬½«ËùÔÚÐеÄ(x,y)»³öÀ´ 2.Ï£ÍûΪÕâ¸öÉ¢µãͼ¼ÓÉÏÒ»¸ö±³¾°£¬È總¼þËùʾ¡£ ÎÒдÁËÒ»¸ö×î»ù±¾µÄ×öÉ¢µãͼµÄcode£¬ÈçÏÂËùʾ¡£Ð»Ð»´ó¼Ò #!/usr/bin/env python from pylab import * filename = "D:\\Program Files\\python 2.4.3\\py2exe code\\fixation_xy.txt" X = load(filename) fixation_x = X[:, 0] fixation_y= X[:, 1] loc=X[:,2] scatter(fixation_x,fixation_y,s=1, marker='^', c='r') savefig('fixation.png', dpi=75) show() -- Best Regards, He Jibo jibohe2在cyrus.psych.uiuc.edu hejibo在gmail.com --------------------------- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technology University of Illinois, Urbana Champaign, 603 East Daniel St., Champaign, IL 61820 Tel: 217-244-4461(office) 217-244-6763(lab) Email: hejibo在gmail.com -- Best Regards, He Jibo jibohe2在cyrus.psych.uiuc.edu hejibo在gmail.com --------------------------- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technology University of Illinois, Urbana Champaign, 603 East Daniel St., Champaign, IL 61820 Tel: 217-244-4461(office) 217-244-6763(lab) Email: hejibo在gmail.com -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080208/c5c732ba/attachment.html -------------- 下一部分 -------------- Ò»¸ö·ÇÎı¾¸½¼þ±»Çå³ý... ·¢ÐÅÈË: %(who)s Ö÷Ìâ: %(subject)s ÈÕÆÚ: %(date)s ´óС: 7207 Url: http://python.cn/pipermail/python-chinese/attachments/20080208/c5c732ba/attachment.png -------------- 下一部分 -------------- ǶÈëµÄ¡¢ÎÞ·¨È·¶¨×Ö·û¼¯µÄÎı¾±»³ýÈ¥ÁË... Ãû³Æ£ºfixation_xy.txt Url£º http://python.cn/pipermail/python-chinese/attachments/20080208/c5c732ba/attachment.txt
Zeuux © 2024
京ICP备05028076号