Re: [Matplotlib-users] error: Gtk* backend requires pygtk to be installed

2010-06-25 Thread Mike Anderson
Hi, Went looking on examples page and found there was a file name demo_image.py http://matplotlib.sourceforge.net/examples/axes_grid/demo_image.html However for whatever reason the source code was not downloadable (404 error), so I copied it off the html page. I'm not sure why the

[Matplotlib-users] scatter plot with discrete colorbar

2010-06-25 Thread German Ocampo
Hi I'm using the following code for insert a scatter plot in a figure in Qt. vmin=min(r_time[:]) vmax=max(r_time[:]) valores=np.arange(vmin,vmax+1) a1=self.ui.axes4.scatter(r_east,r_nort,vmin=vmin,vmax=vmax,c=r_time,edgecolors=none)

Re: [Matplotlib-users] Mac OS X 10.6 dmg install (Tim Gray)

2010-06-25 Thread Christopher Brewster
I have followed these instructions to (almost ) the letter. Only difference is that python was already installed at /Library/Frameworks/Python.framework/Versions/2.6/bin/python I also re-installed numpy. Still no good with always the same problem - the absence of numpy.core.ma Any suggestions?

[Matplotlib-users] Reverse y-axis?

2010-06-25 Thread Preben Randhol
Hi I need to plot some data vs depth. In stead of giving depths as 0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting the data goes downwards (as if they had been negative). Can I get the y-axis to reverse so it goes downwards and not upwards?

Re: [Matplotlib-users] Mac OS X 10.6 dmg install

2010-06-25 Thread Tim Gray
On Jun 24, 2010 at 04:52 PM -0400, Tim Gray wrote: I'm updating my python install but am running into problems with matplotlib, as always. This time around I'd thought I'd use the .dmg installer. I've already installed Python 2.6.5 from python.org and numpy from scipy.org. Both of these

Re: [Matplotlib-users] Mac OS X 10.6 dmg install (Tim Gray)

2010-06-25 Thread Tim Gray
On Jun 24, 2010 at 09:37 PM -0700, Hana Sevcikova wrote: I think you just need to direct the PYTHONPATH variable to the place where matplotlib is installed. My PYTHONPATH looks like this:

Re: [Matplotlib-users] Mac OS X 10.6 dmg install (Tim Gray)

2010-06-25 Thread Ian Stokes-Rees
On 6/25/10 8:23 AM, Christopher Brewster wrote: I have followed these instructions to (almost ) the letter. Only difference is that python was already installed at /Library/Frameworks/Python.framework/Versions/2.6/bin/python I also re-installed numpy. Still no good with always the same

Re: [Matplotlib-users] Reverse y-axis?

2010-06-25 Thread Michael Droettboom
On 06/25/2010 07:41 AM, Preben Randhol wrote: Hi I need to plot some data vs depth. In stead of giving depths as 0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting the data goes downwards (as if they had been negative). Can I get the y-axis to reverse so it goes

Re: [Matplotlib-users] Reverse y-axis?

2010-06-25 Thread Joe Kington
There's no single function to do it, but just reversing the current ylimits manually is a one-liner. (plt is matplotlib.pyplot, here) plt.ylim(plt.ylim()[::-1]) Hope that helps, -Joe On Fri, Jun 25, 2010 at 6:41 AM, Preben Randhol rand...@pvv.org wrote: Hi I need to plot some data vs

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 49, Issue 66

2010-06-25 Thread Ranjit Chacko
I tried compiling matplotlib following these directions and it failed on the build step. Any idea what's going wrong here: gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API

[Matplotlib-users] Symbol not found

2010-06-25 Thread Ranjit Chacko
I finally somehow managed to get matplotlib to compile but now when I try to import matplotlib.pyplot I get the following error: Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute 'pyplot' from matplotlib import pyplot as plot

Re: [Matplotlib-users] Mac OS X 10.6 dmg install

2010-06-25 Thread Christopher Barker
Tim Gray wrote: The 0.99.1.1 installer places files in the appropriate location for python.org 2.6.5. The 0.99.3 installer places files in the appropriate location for the OS X bundled version of python (2.6.1) that we have been warned not to use. Well, it's not the worst thing in the

Re: [Matplotlib-users] Mac OS X 10.6 dmg install

2010-06-25 Thread Tim Gray
On Jun 25, 2010 at 10:01 AM -0700, Christopher Barker wrote: Anyway, it's been common practice to build binaries for the python.org python -- it's the way to reach the widest audience. MPL used to do this. I suspect the latest binary is a mistake, but if not, it should be Clearly labeled as

Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3?

2010-06-25 Thread PHobson
Bill, Unfortunately, I don't have a solution for you. I just wanted to chime in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge. -paul -Original Message- From: Bill Eaton

Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3?

2010-06-25 Thread Jeff Whitaker
On 6/25/10 12:21 PM, phob...@geosyntec.com wrote: Bill, Unfortunately, I don't have a solution for you. I just wanted to chime in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge. -paul

Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3?

2010-06-25 Thread Christoph Gohlke
IIRC basemap contains Cython code, which would need to be recythonized with the latest Cython version in order to work with numpy 1.4.1. If you don't mind trying developer releases, use basemap 0.99.5 from http://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap, which should work with numpy 1.4.1.

Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3?

2010-06-25 Thread PHobson
Success! (well, the import worked) Christoph, thanks so much for the link, it is awesome! It can't be said enough that this is an awesome project and I'm so glad and thankful that it exists. -Original Message- From: Christoph Gohlke [mailto:cgoh...@uci.edu] Sent: Friday, June 25,

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Benjamin Root
Ranjit, There are a couple of possibilities. The first is that the TrueType fonts packages weren't detected during the build, so matplotlib compiled without it, leading to your issue. I have also seen an issue where your ~/.matplotlib/ needs to be cleaned out of font-related files. Another

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Ranjit Chacko
Hi Ben, Thanks for the tips. How do I check the TrueType fonts? Googling matplotlib developer wiki doesn't turn up anything. There isn't anything in the ~/.matplotlib directory. I just went ahead and recompiled numpy and matplotlib, and got the same error. -Ranjit On Fri, Jun 25, 2010 at 12:59

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Benjamin Root
Sorry, it isn't a developer wiki (numpy and scipy have that...). But here are the requirements to make sure that they are installed. http://matplotlib.sourceforge.net/users/installing.html#build-requirements Ben Root On Fri, Jun 25, 2010 at 3:31 PM, Ranjit Chacko rjcha...@gmail.com wrote: Hi

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Benjamin Root
Oh, wait a minute, you are doing a Frameworks install on a Mac. I think there are others here that might be able to comment on Mac installs. Ben On Fri, Jun 25, 2010 at 3:31 PM, Ranjit Chacko rjcha...@gmail.com wrote: Hi Ben, Thanks for the tips. How do I check the TrueType fonts? Googling