[Matplotlib-users] I get a warning when running code with ipython, but not with python

2011-11-13 Thread Alejandro Weinstein
Hi: I just installed matplolib from source code, and Ipython using pip, in Ubuntu 11.10. When I run this code ### foo.py import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel('some numbers') plt.show() ## in ipython, I get the following

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Gökhan Sever
On Sun, Nov 13, 2011 at 4:37 PM, klo uo wrote: > I think that paths needed to be passed to CPP/LDFLAGS like this: > > CPPFLAGS=-I/usr/include/hdf LDFLAGS=-L/usr/lib ./configure --enable-hdf4 > && make > > then also package is dependent on latest hdf5 to be build (1.8.7), so > installing it global

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
It's not "official", but just idiomatic, I suppose ;) http://en.wikipedia.org/wiki/Monkey_patch http://paulirish.com/2010/duck-punching-with-jquery/ > > Is that an official term? I have done things like this before, but never had > a word for it. > > Ben Root > -- Daniel Hyams dhy...@gmail.

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread klo uo
I think that paths needed to be passed to CPP/LDFLAGS like this: CPPFLAGS=-I/usr/include/hdf LDFLAGS=-L/usr/lib ./configure --enable-hdf4 && make then also package is dependent on latest hdf5 to be build (1.8.7), so installing it globally would break possible dependencies in any packaging system,

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-13 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > $ stat -f "" /Library/Fonts/NISC18030.ttf > Last accessed or modified: 1321107464 = 12 Nov 2011 > Last changed: 1264652963 = 28 Jan 2010 > Time of Birth: 1292365840 = 14 Dec 2010 The file might have been created earlier; the date 14 Dec 2010 is the day where I

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Benjamin Root
On Sunday, November 13, 2011, Daniel Hyams wrote: >> >> OK, types is a new part of the Python library for me, I'll have to go >> learn about it. It looks like you basically just subclassed the >> QuadContourSet object through a back door, by giving it the missing >> method. > > It's not a subclas

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
> > OK, types is a new part of the Python library for me, I'll have to go > learn about it.  It looks like you basically just subclassed the > QuadContourSet object through a back door, by giving it the missing > method. It's not a subclass, it's just a "monkey patch". I personally like "duck pun

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread John Ladasky
On Sun, 2011-11-13 at 13:26 -0500, Daniel Hyams wrote: > Oops; my sentence should have read "is *not* derived from an artist". Yes, I was wondering about that. I was actually looking though the artist.py and contour.py source code when your message came in. On Sunday, November 13, 2011, Daniel

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Gökhan Sever
On Sun, Nov 13, 2011 at 12:57 PM, Jeff Whitaker wrote: > > Gökhan: netcdf4-python can read hdf5-eos files, and even hdf4-eos files > if the netcdf C lib is built with hdf4 support. > > -Jeff > I can't build netcdf4 C libraries with HDF4 support. [gsever@ccn hdf-4.2.6]$ ./configure --prefix=/usr

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Jeff Whitaker
On 11/13/11 12:40 PM, Gökhan Sever wrote: Hello groups, I have two questions about working with MODIS data. 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have managed to install that package from its s

[Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Gökhan Sever
Hello groups, I have two questions about working with MODIS data. 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have managed to install that package from its source, it took me many hours to figure out all

[Matplotlib-users] Triangulation objects

2011-11-13 Thread Daniel Welling
Greetings. I am interested in accessing Triangulation objections that are created by MPL for tricontour-type plots. The docs for MPL routines that use triangulation objects refer to documentation, but none exists in the MPL online docs. Does anyone have docs/info on using these objects? Having

Re: [Matplotlib-users] Updating/drawing all axes.

2011-11-13 Thread Daniel Welling
Sorry for the very slow reponse time; it's a busy time of the year. Anyway, I've narrowed the problem quite a bit. Here is the kind of situation that causes the issue: import matplotlib.pyplot as plt plt.ion() f1=plt.figure() a1=f1.add_subplot(111) f2=plt.figure() a2=f2.add_subplot(111) a1.plo

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
Oops; my sentence should have read "is *not* derived from an artist". On Sun, Nov 13, 2011 at 1:24 PM, Benjamin Root wrote: > > > On Sunday, November 13, 2011, Daniel Hyams wrote: >> This looks like a bug in matplotlib to me; I get the same thing. >> >> The basic issue is that QuadContourSet is

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Benjamin Root
On Sunday, November 13, 2011, Daniel Hyams wrote: > This looks like a bug in matplotlib to me; I get the same thing. > > The basic issue is that QuadContourSet is derived from an artist, and > so does not have all of the artist methods; the animation framework > depends on the things that it is an

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
This looks like a bug in matplotlib to me; I get the same thing. The basic issue is that QuadContourSet is derived from an artist, and so does not have all of the artist methods; the animation framework depends on the things that it is animating being artists. The following monkey patch fixes it

Re: [Matplotlib-users] Python / Matplotlib Central

2011-11-13 Thread Christoph Gohlke
On 11/13/2011 8:38 AM, Rahul Mahajan wrote: > Hi, > > Is there such a thing "Python / Matplotlib Central Exchange" similar to > the "File Exchange on Matlab Central" ( > http://www.mathworks.com/matlabcentral/fileexchange/ ) that anyone is > aware of which allows one to search for user-contribut

[Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread John Ladasky
In my last post I said that upgrading Numpy to 1.6.1 restored function to Matplotlib 1.1.0. Well, I spoke a bit too soon. Static contour plots appear to work fine, but they don't play nicely with the new animation methods. This animation example runs without errors. http://matplotlib.sourceforg

[Matplotlib-users] Python / Matplotlib Central

2011-11-13 Thread Rahul Mahajan
Hi, Is there such a thing "Python / Matplotlib Central Exchange" similar to the "File Exchange on Matlab Central" ( http://www.mathworks.com/matlabcentral/fileexchange/ ) that anyone is aware of which allows one to search for user-contributed functions / packages. Many Thanks! --

Re: [Matplotlib-users] Upgraded to 1.1.0, numpy upgrade fixed problems

2011-11-13 Thread John Ladasky
Just to follow up: I can now report that removing numpy 1.3.0 and installing 1.6.1 corrected the problems with image and contour plots in my configuration. Thanks to everyone for their input. -- RSA(R) Conference 2012

Re: [Matplotlib-users] Upgraded to 1.1.0, now only line graphs work!

2011-11-13 Thread Ludwig Schwardt
Hi Ben and John, > The doc page is wrong. There was suspicions of this recently with > nextafter(), but no one knew when it was introduced in numpy. Now we know > and I will update the page accordingly. I ran into the same problem recently and discovered that nextafter() was introduced in numpy

[Matplotlib-users] Fwd: Upgraded to 1.1.0, now only line graphs work!

2011-11-13 Thread Warren Weckesser
I meant to send this to the list yesterday, but I just noticed I sent it only to Ben. For completeness, here it is... -- Forwarded message -- From: Warren Weckesser Date: Sat, Nov 12, 2011 at 8:45 PM Subject: Re: [Matplotlib-users] Upgraded to 1.1.0, now only line graphs work! T

Re: [Matplotlib-users] Inexact drawing of points

2011-11-13 Thread Goyo
2011/11/7 Anton Daitche : > Do you remember the name of the thread? I would like to understand the > details on this. I can't find it right now but I guess Michael's answer helps you. > I also would like to find out if i can force the renderer to do exact > drawing (at some computational cost).

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-13 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > This is my summary of what I found out. Some small follow-up regarding what might trigger the bug: http://comments.gmane.org/gmane.comp.python.matplotlib.general/1115 is a report by Chris Barker indicating as a side-effect that NISC18030.ttf was present even in 2