Re: [Matplotlib-users] problem with contour() & basemap; contours overlapping map

2009-03-16 Thread Jouni K . Seppänen
Pablo Romero writes: > How can I go about correcting this, so that the 'basemap.contour()' > function draws the contours BEFORE drawing the coastlines & filled > continents? Use appropriate zorder arguments in your method calls: http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_d

Re: [Matplotlib-users] problems with contourf & alpha

2009-03-16 Thread Jouni K . Seppänen
Pablo Romero writes: > Im having an issue where contourf is producing visible defects in the > shaded contours (within png output) with alpha values that are less > then 1.0. Looks like the same problem as this one: http://thread.gmane.org/gmane.comp.python.matplotlib.general/16225 -- Jouni K.

[Matplotlib-users] problem with contour() & basemap; contours overlapping map

2009-03-16 Thread Pablo Romero
Im having an issue with the plotting of contours using basemap. My contours are incorrectly being plotted on top of my basemap coastlines&continents. Ive attached an image as an example: Note that the red contour lines near land areas are OVERLAPPING the coastlines & continents, instead of b

Re: [Matplotlib-users] freetype problem with 0.98.5.2 on OS X

2009-03-16 Thread Jeff Whitaker
Brian Granger wrote: > Hi, > > matplotlib 0.98.3 runs fine on my system. However, when I do "ipython > -pylab" with 0.98.5.2 on OS X, I get: > > from matplotlib import ft2font > ImportError: > dlopen(/Users/bgranger/Library/Python/2.5/site-packages/matplotlib/ft2font.so, > 2): Symbol not foun

[Matplotlib-users] freetype problem with 0.98.5.2 on OS X

2009-03-16 Thread Brian Granger
Hi, matplotlib 0.98.3 runs fine on my system. However, when I do "ipython -pylab" with 0.98.5.2 on OS X, I get: from matplotlib import ft2font ImportError: dlopen(/Users/bgranger/Library/Python/2.5/site-packages/matplotlib/ft2font.so, 2): Symbol not found: _FT_Get_PS_Font_Info Referenced

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Eric Firing
Pablo Romero wrote: > Eric, > > thanks for all of the help. > > Im going to do what you suggested; find a way to add a very small amount to > my '0.0' values, as this should definitely place them in the 'above zero > boundary' bin. > Z[Z==0] = 0.1 That's all you need, it appears. Eric -

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Pablo Romero
Eric, thanks for all of the help. Im going to do what you suggested; find a way to add a very small amount to my '0.0' values, as this should definitely place them in the 'above zero boundary' bin. Thanks again, P.Romero > Date: Mon, 16 Mar 2009

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Eric Firing
Pablo Romero wrote: > Eric, > For your reference, Im sending you a link to the python-grads interface files. Thank you. I am coming to the conclusion that you were mostly right early on. I suspect that whether points landing on a contour boundary end up treated as above or below is not uniquel

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Pablo Romero
Eric, For your reference, Im sending you a link to the python-grads interface files. http://downloads.sourceforge.net/opengrads/pygrads-1.1.0.tar.gz It wont function unless you have grads available, but perhaps it might help to take a look at how the python code is creating the GrADS masked a

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Eric Firing
Pablo Romero wrote: > Eric, > I've uploaded the file. > The only thing I should mention is that my 'X' and 'Y' arrays are not masked > arrays, they are 2d arrays that I created using the meshgrid function. > > I ended up doing this > > Xnp=np.array(X) > Ynp=np.array(Y) > > which probably wa

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Pablo Romero
Eric, I've uploaded the file. The only thing I should mention is that my 'X' and 'Y' arrays are not masked arrays, they are 2d arrays that I created using the meshgrid function. I ended up doing this Xnp=np.array(X) Ynp=np.array(Y) which probably wasnt necessary.. Let me know if the file

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Eric Firing
Pablo Romero wrote: > Eric, > Its Still not working, still getting white/empty areas where Z=0.0 > Here's my ipython output: > > [6] ga-> Znp=np.array(Z.filled()) > [7] ga-> Znp > Out[7]: > array([[ 0., 0., 0., ..., 0., > 0., 0.]