[Tutor] How to plot graph?

tee chwee liong tcl76 at hotmail.com
Wed Jan 19 10:53:10 CET 2011


hi all, 
 
i installed matplotlib, numpy and scipy. i tried to run attached script to learn how it plot a grph but got error as below:
 
Traceback (most recent call last):
  File "C:\Python25\myscript\plot\plot1.py", line 3, in <module>
    from scipy import *
  File "C:\Python25\Lib\site-packages\scipy\linalg\__init__.py", line 31, in <module>
    from numpy.testing import NumpyTest
ImportError: cannot import name NumpyTest
 
pls advise.
 
thanks
 


From: waynejwerner at gmail.com
Date: Tue, 18 Jan 2011 06:14:07 -0600
Subject: Re: [Tutor] How to plot graph?
To: tcl76 at hotmail.com
CC: tutor at python.org


On Tue, Jan 18, 2011 at 4:30 AM, tee chwee liong <tcl76 at hotmail.com> wrote:


hi all, 
 
i'm new to python and this is advanced for me. is there a way to plot data with python? i want to plot EyVt, EyHt on the Y-axis and Lane on the X-axis as attached or below. 
currently i'm using Python2.5 and Win XP. thanks a lot. 


Take a look at the matplotlib library: http://matplotlib.sourceforge.net/


Especially the gallery page - there are several examples of what you can do. It may not be the easiest thing to start into as a beginner, but it's definitely available.


If you're interested in doing a lot of scientific stuff, I'd also recommend using Python(X, Y): http://www.pythonxy.com/ as it bundles most of the tools you'll need (such as matplotlib) into one easy installer.


Give it a try and if you get stuck, send us another email with what you've done, what you expect it to do, and what it actually does instead (including the full text of any and all tracebacks).


HTH,
Wayne 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110119/4b72604b/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: plot1.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20110119/4b72604b/attachment.ksh>


More information about the Tutor mailing list