[Matplotlib-users] svn build cannot import
I have built matplotlib from svn this morning (trunk), which was successful, but when I go to import anything, it fails: >>> import pylab Traceback (most recent call last): File "", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/pylab.py", line 1, in ? from matplotlib.pylab import * ImportError: No module named matplotlib.pylab >>> import matplotlib Traceback (most recent call last): File "", line 1, in ? ImportError: No module named matplotlib However, when I look in my site-packages directory, matplotlib is clearly there: Osoyoos:~ chris$ ls /Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages README modulegraph-0.7-py2.4.egg activestate.py numpy altgraph-0.6.7-py2.4.eggnumpy-1.0rc1.dev3136- py2.4.egg-info bdist_mpkg-0.4.2-py2.4.egg py2app-0.3.4-py2.4.egg easy-install.pthpylab.py macholib-1.1-py2.4.egg pylab.pyc matplotlib pylab.pyo matplotlib-0.87.5_r2761-py2.4-nspkg.pth setuptools-0.6c2-py2.4.egg matplotlib-0.87.5_r2761-py2.4.egg-info setuptools.pth I'm running on OS X using Python 2.4.3. Any ideas? Thanks. -- Christopher Fonnesbeck + Atlanta, GA + fonnesbeck at mac.com + Contact me on AOL IM using email address - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] svn build cannot import
I just built svn 2761 on linux, and didnt find any problems. Darren On Friday 08 September 2006 08:39, [EMAIL PROTECTED] wrote: > I have built matplotlib from svn this morning (trunk), which was > > successful, but when I go to import anything, it fails: > >>> import pylab > > Traceback (most recent call last): >File "", line 1, in ? >File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/pylab.py", line 1, in ? > from matplotlib.pylab import * > ImportError: No module named matplotlib.pylab > > >>> import matplotlib > > Traceback (most recent call last): >File "", line 1, in ? > ImportError: No module named matplotlib > > However, when I look in my site-packages directory, matplotlib is > clearly there: > > Osoyoos:~ chris$ ls /Library/Frameworks/Python.framework/Versions/2.4/ > lib/python2.4/site-packages > README modulegraph-0.7-py2.4.egg > activestate.py numpy > altgraph-0.6.7-py2.4.eggnumpy-1.0rc1.dev3136- > py2.4.egg-info > bdist_mpkg-0.4.2-py2.4.egg py2app-0.3.4-py2.4.egg > easy-install.pthpylab.py > macholib-1.1-py2.4.egg pylab.pyc > matplotlib pylab.pyo > matplotlib-0.87.5_r2761-py2.4-nspkg.pth setuptools-0.6c2-py2.4.egg > matplotlib-0.87.5_r2761-py2.4.egg-info setuptools.pth > > I'm running on OS X using Python 2.4.3. > > Any ideas? Thanks. > > -- > Christopher Fonnesbeck > + Atlanta, GA > + fonnesbeck at mac.com > + Contact me on AOL IM using email address > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 [EMAIL PROTECTED] office: (607) 255-3819 fax: (607) 255-9001 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] svn build cannot import
Hi, I you don't need to use svn, you might give this build a try: http://pythonmac.org/packages/py24-fat/index.html Christian - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] legend problem
Hi all! I have a small problem with the legend() stuff... when plotting several lines like in: name=0 for curve in data: plot(curve[0],curve[1],label=str(name)) name+=1 legend() show() the first two curves appear with a label but without the line represented in the legend box. Moreover the label used for the first two lines is always line0 and line1, whatever the label I actually create. I was able to fix this by creating a label list and unvoking legend(label_list) but this did not work for the lines... any clue?? PS I am running 0.87.3 (problems installing 0.87.5 see next post) Thanks in advance JF - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problem installing 0.87.5
I tried installing the 0.87.5 version of matplotlib and this is what I get when running a routine that worked under 0.87.3. Any clue? TIA JF >pythonw -u "image_rx2_3.py" Traceback (most recent call last): File "image_rx2_3.py", line 1, in ? from pylab import * File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ? from matplotlib.pylab import * File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ? import cm File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ? import colors File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ? from numerix import array, arange, take, put, Float, Int, where, \ File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py", line 145, in ? __import__('fft', g, l) File "C:\Python24\Lib\site-packages\matplotlib\numerix\fft\__init__.py", line 11, in ? from numpy.dft.old import * ImportError: No module named old >Exit code: 1 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem installing 0.87.5
This question was asked on this list yesterday. You need to install numpy-1.0b5. Darren On Friday 08 September 2006 09:52, Jean_Francois Moulin wrote: > I tried installing the 0.87.5 version of matplotlib and this is what I get > when running a routine that worked under 0.87.3. Any clue? > TIA > JF > > >pythonw -u "image_rx2_3.py" > > Traceback (most recent call last): > File "image_rx2_3.py", line 1, in ? > from pylab import * > File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ? > from matplotlib.pylab import * > File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ? > import cm > File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ? > import colors > File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ? > from numerix import array, arange, take, put, Float, Int, where, \ > File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py", line > 145, in ? __import__('fft', g, l) > File "C:\Python24\Lib\site-packages\matplotlib\numerix\fft\__init__.py", > line 11, in ? from numpy.dft.old import * > ImportError: No module named old > > >Exit code: 1 > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 [EMAIL PROTECTED] office: (607) 255-3819 fax: (607) 255-9001 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problems building mpkg installers for matplotlib
I am building matplotlib on an Intel Mac, and trying to use py2app to generate mpkg files. Everything seems to go well, except that when I go to install the package, it says that there is nothing to install. The package seems to be there, but is grayed out with "Skip" in the action column: http://trichech.us/images/mpkg.png Anyone else encounter this problem? Thanks, -- Christopher Fonnesbeck + Atlanta, GA + fonnesbeck at mac.com + Contact me on AOL IM using email address - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] svn build cannot import
Christian Meesters wrote: > I you don't need to use svn, you might give this build a try: > http://pythonmac.org/packages/py24-fat/index.html Or the latest build, which is now at: http://euclid.uits.iupui.edu/mplfiles/ You'll need: matplotlib-0.87.5-py2.4-macosx-10.4-fat.egg and: numpy-1.0b5-py2.4-macosx-10.4-fat.egg (if you want to use numpy) Charlie: I think we should give those to Bob I to put on the pythonmac site. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] function domain problems
I suggest using masked arrays to ensure you are only trying to plot real numbers: def f(x): y = log(x) ygood = (y < 1e38) & (y > -1e-38) yy = nx.ma.masked_where(ygood == 0, y) return yy Note the parentheses and peculiar use of bitwise-and in the definition of ygood. This is a hack to get around the fact that the logical-and operator in python cannot be overloaded at present, and so is not available in numpy. Eric Davidlohr Bueso A. wrote: > Hi all, > > I'm having trouble plotting functions were the domain aren't the real > numbers (R). Functions like x**-n, log(x), etc. Does anyone know if > there's a simple way of solving this problem. Here's a little script and > it's error: > > from pylab import * > > def f(x): > return log(x) > > x = arange(-3, 4) > plot(x, f(x)) > show() - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Interactive masking
I am interested in making an 'interactive mask.' That is, I am creating a model of estuarine flow, where the grid is rectangular, and part of the domain will be land, not included in the simulation through a mask. I would like to be able to modify this mask using a tool that will allow me to click cells on and off. I can think of a few ways to do this, but I thought I would ask y'all first. A rough outline of the code would be: 1. pcolor the grid 2. Catch clicks in the figure, and determine which cell is clicked. 3. Toggle the masking of that cell, and re-draw the figure Has anybody done this? Any ideas about any of the parts? I think I can handle part 1. I'm worried part 3 might be inefficient. -Rob Rob Hetland, Associate Professor Dept. of Oceanography, Texas A&M University http://pong.tamu.edu/~rob phone: 979-458-0096, fax: 979-845-6331 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Setting aspect ratio?
I have looked in the User's Guide for matplotlib, but couldn't find anything on setting the aspect ratio. Can anyone point me to some info online? I will continue to look. Thanks. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Plotting time on x-axis
I found how to explicitly set the x-axis using the following command: figure.gca().set_xlim([min, max]) -Roberto. On 9/6/06, Roberto Aguilar <[EMAIL PROTECTED]> wrote: > Hello, > > I'm creating a program that plots data in real-time. I want the > x-axis to be the time in HH:MM:SS. I'm still playing with the date > formatters, but have run into a problem where it seems the axis puts > in more points on the axis to make the plot fit nicely. For instance, > I want to have 120 data points (seconds) on the graph. Initially, the > x-axis starts at, say 0 and goes to 120 (I'd expect this to be 119). > The following second the x-axis should go from 1 to 120, then 2 to > 121, etc. But instead, the x-axis goes from 0 to 140. Once 141 > seconds have passed by, the axis shifts and goes from 20 to 160. > > Is there any way to make the axis behave so that it keeps just 120 > values on the axis and increment the values as described above? > > Thanks! > -Roberto. > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Linestyles and steps
Is it possible to combine the dashed, dot-dashed, and dotted line styles with a linestyle='steps' keyword argument? -- R. Padraic Springuel Teaching Assistant Department of Physics and Astronomy University of Maine Bennett 309 Office Hours: By Appointment only during the Summer - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Setting aspect ratio?
Louis Pecora wrote: > I have looked in the User's Guide for matplotlib, but couldn't find > anything on setting the aspect ratio. Can anyone point me to some info > online? I will continue to look. Thanks. > Each axes object has the following method (with only the docstring shown here): def set_aspect(self, aspect, adjustable=None, anchor=None): """ aspect: 'auto' - automatic; fill position rectangle with data 'normal' - same as 'auto'; deprecated 'equal' - same scaling from data to plot units for x and y num - a circle will be stretched such that the height is num times the width. aspect=1 is the same as aspect='equal'. adjustable: 'box' - change physical size of axes 'datalim' - change xlim or ylim anchor: 'C' - centered 'SW'- lower left corner 'S' - middle of bottom edge 'SE'- lower right corner etc. ACCEPTS: ['auto' | 'equal' | aspect_ratio] """ Is this what you are looking for? Eric - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users