Re: [Matplotlib-users] quiver() color arrays?

2009-08-07 Thread Eric Firing
Zane Selvans wrote: > Hey there, > > I'm trying to plot a bunch-o-vectors, colored red or blue, depending on > whether their magnitude is positive or negative (they represent > stresses), and I'm doing something like this: > > mag1 = evals[:,0] > ex1 = evecs[:,0,1] > ey1 = evecs[:,0,0] > C1 =

[Matplotlib-users] Using bbox_to_anchor to get the legend off of my graph

2009-08-07 Thread Eliezer, David
Hi, I am graphing several time series together on the same graph, and so it is important to have a legend. I am also stacking two graphs on top of one another, because some of the data is of a different type. I wrote the graphing code as follows (pardon the newbie code, this is my first

[Matplotlib-users] quiver() color arrays?

2009-08-07 Thread Zane Selvans
Hey there, I'm trying to plot a bunch-o-vectors, colored red or blue, depending on whether their magnitude is positive or negative (they represent stresses), and I'm doing something like this: mag1 = evals[:,0] ex1 = evecs[:,0,1] ey1 = evecs[:,0,0] C1 = np.where(mag1 >= 0, 'red', 'blue') mag2

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread Bernd Eggink
John Hunter schrieb: > On Fri, Aug 7, 2009 at 10:34 AM, John Hunter wrote: > >> Unfortunately, the exception glib.GError is gtk version dependent so I >> can't easily catch it. I am loathe to do a blanket except catch, but >> I am not sure what the alternative is here. > > I committed a change t

Re: [Matplotlib-users] animate histogram

2009-08-07 Thread Alan G Isaac
This is a second plea for help. http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg12632.html I have a figure.Figure embedded in a FigureCanvasTkAgg. Each iteration, new data are received, and I want an updated histogram. Now I can at least see a way to do this with pyplot: I j

Re: [Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-07 Thread Christoph Gohlke
Hi, here is a VS2003 build of matplotlib-0.99.0 for Python 2.5 for comparison: Christoph On 08/07/2009 00:27, John Hunter wrote: > On Thu, Aug 6, 2009 at 8:48 PM, Patrick Rynhart wrote: >> Dear all, >> >> We are using

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread Christopher Barker
sasha wrote: > Ok i fixed insytalling in usr local lib from source (both png and freetype) > i tried to tell matplotlib to find the frameworks but i don't know how. for the record, William's Frameworks all have a "unix" dir in them, which have "lib" and "include" dirs. You need to add those to MP

[Matplotlib-users] os x trouble

2009-08-07 Thread Gideon Simpson
With 0.99.0, I'm getting the following error when building from source. I believe this is the same error I got in earlier versions: gcc -fno-strict-aliasing -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/opt/lib/ python2.5/site-pac

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread sasha
Ok i fixed insytalling in usr local lib from source (both png and freetype) i tried to tell matplotlib to find the frameworks but i don't know how. now matplotlib is up and running, thanks to point me to the png error. Il giorno 07/ago/09, alle ore 18:10, Christopher Barker ha scritto: > John H

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread Christopher Barker
John Hunter wrote: > No, you have troubles with libpng -- check the first instance of > "error" in your gcc output: > > src/backend_agg.cpp:3:17: error: png.h: No such file or directory > > Either you do not have libpng installed, or it is in a place where the > build cannot find it. Note tha

[Matplotlib-users] Bug in demean

2009-08-07 Thread Keith Goodman
Robert Kern recently noticed a bug in demean. The bug and the fix is here: http://mail.scipy.org/pipermail/numpy-discussion/2009-August/06.html -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 3

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 10:34 AM, John Hunter wrote: > Unfortunately, the exception glib.GError is gtk version dependent so I > can't easily catch it.  I am loathe to do a blanket except catch, but > I am not sure what the alternative is here. I committed a change to the release branch (I did not

[Matplotlib-users] Interpolate new point in a xy plane of data

2009-08-07 Thread tfoutz99
I have a large xy plane of data with ~26000 points. The points are not in a rectangular grid. I would like to interpolate to a new point within this dataset. Is there an easy way to do this? I have tried interp2d, but it does not give me a valid result, e.g. from scipy.interpolate import interp

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 7:47 AM, Bernd Eggink wrote: >> Christoph, is GTKAgg the default backend in the win32 installers?  It >> should be TkAgg.  Are you creating a setp.cfg when you build your >> installer, as described at Reminder to self: do not post before morning coffee. For some reason I t

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread Bernd Eggink
John Hunter schrieb: > On Fri, Aug 7, 2009 at 4:10 AM, Bernd Eggink wrote: > >> being a complete newbie, I tried to run the simple_plot example from the >> website with matplotlib-0.99.0. However, I get the error message: > >> "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py",

Re: [Matplotlib-users] Basemap and UTM Coordinates

2009-08-07 Thread Jeff Whitaker
Anja Roesel wrote: > Thanks Jeff, that's actually what I wanted to know. > Unfortunately I guess, there is a small difference between Transverse > Mercator and Universal Transverse Mercator Projections > Do I have the possibility to define somewere the UTM zone and the Datum > of my Projection. > I

Re: [Matplotlib-users] Basemap and UTM Coordinates

2009-08-07 Thread Anja Roesel
Thanks Jeff, that's actually what I wanted to know. Unfortunately I guess, there is a small difference between Transverse Mercator and Universal Transverse Mercator Projections Do I have the possibility to define somewere the UTM zone and the Datum of my Projection. I tried it like Jeff suggested,

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 4:10 AM, Bernd Eggink wrote: > being a complete newbie, I tried to run the simple_plot example from the > website with matplotlib-0.99.0. However, I get the error message: > "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", > line 443, in __init__ >    

Re: [Matplotlib-users] pyplot should have a adjust_axes() function similar to adjust_subplots() (or not?)

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 4:31 AM, Pim Schellart wrote: > Hi Everybody, > > Before I file a bug report / feature request I would like your input. > I have large numbers displayed slanted for the axis tick labels. > This causes the tick labels as well as the xlabel to fall of the figure. > I know I can

[Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread Bernd Eggink
Hi, being a complete newbie, I tried to run the simple_plot example from the website with matplotlib-0.99.0. However, I get the error message: Traceback (most recent call last): File "simple_plot.py", line 5, in plot(t

[Matplotlib-users] pyplot should have a adjust_axes() function similar to adjust_subplots() (or not?)

2009-08-07 Thread Pim Schellart
Hi Everybody, Before I file a bug report / feature request I would like your input. I have large numbers displayed slanted for the axis tick labels. This causes the tick labels as well as the xlabel to fall of the figure. I know I can adjust the spacing by creating an axes instance manually but th

Re: [Matplotlib-users] Basemap and UTM Coordinates

2009-08-07 Thread Anja Roesel
Jeff, great, thank you! -- Anja Rösel Jeff Whitaker wrote: > Anja Roesel wrote: >> Dear list, >> >> I am a matplotlib newbie and I have some simple problems with the >> coordinate reprojection. >> >> I have a landsat scene in UTM Projection and I would like to plot it in >> a polarstereograhic

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread John Hunter
On Thu, Aug 6, 2009 at 9:28 PM, sasha wrote: > > Hi All, > > i'm tring to install matplotlib (svn) on a fesh mac osc installation > using the system python 2.5.1. > > but i have problems with freetype :-/ No, you have troubles with libpng -- check the first instance of "error" in your gcc output:

Re: [Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-07 Thread John Hunter
On Thu, Aug 6, 2009 at 8:48 PM, Patrick Rynhart wrote: > Dear all, > > We are using Python 2.5, matplotlib and NumPy on Windows to assist > with the teaching for an undergraduate paper.  On a small number of > installations, an error attempting to load some required DLL's is > being reported (on ap