Re: [Matplotlib-users] cone plots

2009-11-02 Thread Jae-Joon Lee
Unfortunately, I don't think something like cone plots can be easily done with current matplotlib. I guess you can define custom projection and such, as in the example below http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html but this will involve some (maybe a lot) cod

Re: [Matplotlib-users] Problem with simple use of draw() in animations of arrays

2009-11-02 Thread Jae-Joon Lee
On Mon, Nov 2, 2009 at 10:52 PM, David Sanders wrote: > from pylab import * > > ion() > > N = 1000 > pos = zeros((N,2)) > > figure(figsize=(8,8)) > points, = plot(pos[:,0], pos[:,1], ',') > axis([-20,20,-20,20]) > > for t in range(1000): > >     pos += uniform(-1,1,N*2).reshape(N,2) >     points.s

[Matplotlib-users] Problem with simple use of draw() in animations of arrays

2009-11-02 Thread David Sanders
Hi, I have a problem with draw() to do simple animations of the contents of arrays in matplotlib. I was trying to use the idea in the animations cookbook ( http://www.scipy.org/Cookbook/Matplotlib/Animations) to animate some "random walkers", but found that the animation did not work. A minimal

Re: [Matplotlib-users] Installing problems

2009-11-02 Thread Christopher Barker
Does the egg at: http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/ matplotlib-0.99.1.1-py2.5-macosx-10.3-i386.egg not work for you? the 10.3 means "10.3 or greater", and I'm pretty sure it is Universal, rather than just i386 as well. It should work with the pyth

[Matplotlib-users] error: command 'gcc-4.0' failed with exit status 1

2009-11-02 Thread R. Mitra
Hello All I did everything as Pierre suggested. But after using setup.py this is what I am getting "error: command 'gcc-4.0' failed with exit status 1" Anyone familiar with this bug On Nov 2, 2009, at 12:42 PM, Pierre de Buyl wrote: > Hello, > > >> There are multiple versions still exist

Re: [Matplotlib-users] Installing problems

2009-11-02 Thread William Carithers
Hello Mitra, If you haven't solved your problem yet, I would highly recommend cleaning up previous versions and using the make.osx file supplied with the matplotlib download. Edit the PREFIX to replace the example target directory with your own target directory. Make sure the MACOSX_DEPLOYMENT_TAR

Re: [Matplotlib-users] Drawing a single contour line

2009-11-02 Thread Pierre de Buyl
From memory, you just need to make a length one list contour(z, [i]) Pierre Le 2 nov. 09 à 22:19, Brendan Arnold a écrit : > Hi there, > > I can draw a single contour line in MATLAB using > > contour(z, [i i]) > > however, > > contour(z, [i, i]) > > using matplotlib gives an error. In fact any

Re: [Matplotlib-users] Drawing a single contour line

2009-11-02 Thread John Hunter
On Mon, Nov 2, 2009 at 3:19 PM, Brendan Arnold wrote: > Hi there, > > I can draw a single contour line in MATLAB using > > contour(z, [i i]) > > however, > > contour(z, [i, i]) > > using matplotlib gives an error. In fact any plot that plots a single > line (i.e. contour(z, 1)) also gives an error

[Matplotlib-users] Drawing a single contour line

2009-11-02 Thread Brendan Arnold
Hi there, I can draw a single contour line in MATLAB using contour(z, [i i]) however, contour(z, [i, i]) using matplotlib gives an error. In fact any plot that plots a single line (i.e. contour(z, 1)) also gives an error as follows, TypeError: unhashable type: 'numpy.ndarray' How do I draw a

Re: [Matplotlib-users] Installing problems

2009-11-02 Thread Pierre de Buyl
Hello, > There are multiple versions still existing on my computer. How can I > clean up and install the latest version? Thank you all so much You need to check the different paths accessed by Python. >>> import sys >>> print sys.path and remove the possible matplotib files in these paths. Ty

[Matplotlib-users] Installing problems

2009-11-02 Thread R. Mitra
Hello Again Since I got no replies for my last question and figuring that it must be a problem with numpy (as Eric pointed out) I now have running python 2.6.4 and numpy 1.3.0 on OSX 10.4.11. Is there a need to uninstall previous matplotlib and reinstall it again? This page sounds pr

Re: [Matplotlib-users] Contourf( )

2009-11-02 Thread Eric Firing
R. Mitra wrote: > Hello All >Thanks a lot Eric. I think I have some module missing but I cannot > figure out what it is. I get the following. Any idea. This started > hapening after I reinstalled matplotlib. This is a numpy installation or version problem--notice that at the bottom of t

Re: [Matplotlib-users] Contourf( )

2009-11-02 Thread R. Mitra
Hello All Thanks a lot Eric. I think I have some module missing but I cannot figure out what it is. I get the following. Any idea. This started hapening after I reinstalled matplotlib. File "/Users/Kennel/Pythoncodes/coolingmodel.py", line 6, in import matplotlib File "/Lib

Re: [Matplotlib-users] basemap: Mask the ocean [SEC=UNCLASSIFIED]

2009-11-02 Thread Jeff Whitaker
Stephane Raynaud wrote: Ross, one way is to mask (or remove) ocean points using the _geoslib module provided with basemap. When you create a Basemap instance, you can retrieve all its polygons land (continents and islands) with "mymap.coastpolygons". Thay are stored as numpy arrays, and you c

Re: [Matplotlib-users] basemap: Mask the ocean [SEC=UNCLASSIFIED]

2009-11-02 Thread Stephane Raynaud
Ross, one way is to mask (or remove) ocean points using the _geoslib module provided with basemap. When you create a Basemap instance, you can retrieve all its polygons land (continents and islands) with "mymap.coastpolygons". Thay are stored as numpy arrays, and you can convert them to _geoslib.