Re: [Matplotlib-users] Any news on wxMPL ?

2008-12-09 Thread Ken McIvor
Massimo, I'm sorry I didn't reply to your email. It fell through the cracks, so to speak. WxMpl development has been stalled for quite some time now because I developed bilateral carpal tunnel syndrome this past spring. It was not my intention to leave it abandoned and incompatible with

Re: [Matplotlib-users] MPL colors

2008-12-09 Thread Mauro Cavalcanti
Dear John, Thanks, it works well! Best regards, 2008/12/9 John Hunter <[EMAIL PROTECTED]>: > Yep, we have a color converter for that -- it recognizes any mpl color > string and returns rgba: > > In [72]: from matplotlib.colors import colorConverter > > In [73]: colorConverter.to_rgba('b') > Out[

Re: [Matplotlib-users] MPL colors

2008-12-09 Thread John Hunter
On Tue, Dec 9, 2008 at 1:01 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote: > Dear ALL, > > MPL accepts several formats for passing color information for the > plotting methods (plot, xlabel, ylabel, etc.) and these are well > documented. The set_color() and other methods in > matplotlib.Lines.Line

[Matplotlib-users] MPL colors

2008-12-09 Thread Mauro Cavalcanti
Dear ALL, MPL accepts several formats for passing color information for the plotting methods (plot, xlabel, ylabel, etc.) and these are well documented. The set_color() and other methods in matplotlib.Lines.Line2D accept all these formats, but I could not figure out how to retrieve the current col

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Mauro Cavalcanti
Dear Scott & Jeff, Sorry for the delay in replying, I was off office for a while. 2008/12/9 Scott Sinclair <[EMAIL PROTECTED]>: > As Jeff noted earlier, the number of elements in an array can't be > increased simply by reshaping it, so the error message isn't too > mysterious, if carefully consi

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Scott Sinclair
> Mauro Cavalcanti wrote: > I tried to do: > > coords = numpy.loadtxt('grid.dat') > lon = coords[:,0] > lat = coords[:,1] > dat = coords[:,2] > X, Y = numpy.meshgrid(lon, lat) > nlons = X.shape[1] > nlats = X.shape[0] > Z = dat.reshape(nlats,nlons) > > (so that I could proceed to plotting with the

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-09 Thread Fago, Matt - AES
> From: Ryan May > The scaling changes are in, as well as the warning and the corresponding > lines in > api_changes and CHANGELOG. I also added the converted matlab demo I > used to > figure this stuff out. Now would probably be the time to see if I did > something > wrong (especially the war

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/9 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: The shape of x, y, and dat must all be (nlats, nlons). >> > > I tried to do: > > coords = numpy.loadtxt('grid.dat') > lon = coords[:,0] > lat = coords[:,1] > dat = coords[:,2] > X, Y = numpy.m

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/9 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Assuming that this is a regular grid (so that using meshgrid makes sense) >> you can >> > > >> using pcolor: >> m.pcolormesh(x,y,dat) >> > > Unfortunately, this didn't work. I got the error me

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/9 Jeff Whitaker <[EMAIL PROTECTED]>: > Assuming that this is a regular grid (so that using meshgrid makes sense) > you can > using pcolor: > m.pcolormesh(x,y,dat) Unfortunately, this didn't work. I got the error message (using the example data from my previous post): "File "/

Re: [Matplotlib-users] Just an aside question on Basemap

2008-12-09 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/9 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro: If your points are defined in terms of longitude and latitude, you > have to convert to map projection coordinates using the __call__ method of > the Basemap instance, i.e. > > x, y = m(lon, lat) # lon,lat can be arrays, lists or s

Re: [Matplotlib-users] Just an aside question on Basemap

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > This is just a simple question on plotting points on Basemap (maybe it > will have to be pursued further). I presume points could be plotted > onto maps, no matter what projection is used -- so, I have been > plotting quite well on maps using an Equire

[Matplotlib-users] Just an aside question on Basemap

2008-12-09 Thread Mauro Cavalcanti
Dear Jeff & ALL, This is just a simple question on plotting points on Basemap (maybe it will have to be pursued further). I presume points could be plotted onto maps, no matter what projection is used -- so, I have been plotting quite well on maps using an Equirectangular projetion and one of your

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > Good morning! Here am I again with the first (and perhaps simpler) > part of a potentially long question on plotting gridded data using MPL > (*and* Basemap). > > Most examples I have found of plotting gridded data (using either > MATLAB or MPL) depict highly

[Matplotlib-users] Plotting grid data

2008-12-09 Thread Mauro Cavalcanti
Dear ALL, Good morning! Here am I again with the first (and perhaps simpler) part of a potentially long question on plotting gridded data using MPL (*and* Basemap). Most examples I have found of plotting gridded data (using either MATLAB or MPL) depict highly sophisticated 3D plots that are much