[Matplotlib-users] Next problem: pixel-to-pixel alpha variation

2008-09-08 Thread David Goldsmith
Hi, folks. OK, I'm trying to set the alpha channel, pixel by pixel, using figimage w/ the data being of the "luminance" type (i.e., an MxN array). The Users Guide indicates that figimage takes an alpha= keyword argument, and it doesn't crash when I pass an array for this value, but subsequentl

Re: [Matplotlib-users] path and bbox

2008-09-08 Thread Eric Firing
Evan Mason wrote: > Hi, wonder if anyone can help me with path and bbox. I have a set of > ocean drifter tracks and I want to know if they pass through a > particular boxed area. This is straightforward to do but I wanted to > try to do it with matplotlib.transforms and matplotlib.path, which

Re: [Matplotlib-users] Re-projecting raster data with Basemap

2008-09-08 Thread Jeff Whitaker
Jose Gomez-Dans wrote: > Jeff, > > On Mon, Sep 8, 2008 at 6:48 PM, Jeff Whitaker <[EMAIL PROTECTED] > > wrote: > > Note that to plot the data with pcolor/pcolormesh of contourf, you > don't need to interpolate to a native projection grid. You can > just do >

Re: [Matplotlib-users] [SciPy-user] how to plot the result of histogram2d

2008-09-08 Thread Eric Firing
Johann Cohen-Tanugi wrote: > thanks Johan, > I posted to scipy because of histogram2d being in numpy, sorry about that. > Now the stupid question, why can't imshow directly parse histogram2d, > without the transitory extent object? imshow is a general image display function; it would not make sen

Re: [Matplotlib-users] Re-projecting raster data with Basemap

2008-09-08 Thread Jose Gomez-Dans
Jeff, On Mon, Sep 8, 2008 at 6:48 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Note that to plot the data with pcolor/pcolormesh of contourf, you don't > need to interpolate to a native projection grid. You can just do > > lons, lats = np.meshgrid(lons,lats) > x,y = m(lons,lats) > im = m.pcolo

[Matplotlib-users] size of the plot

2008-09-08 Thread Bernardo Martins Rocha
Hi Guys, how can I set the size of a plot window by, let's say, 320 x 180 and make it fix, that is, something like "resize=False". I had a look at the documentation but I couldn't figure out which object and method I have to use for this. Thanks in advance! Bernardo M. Rocha --

Re: [Matplotlib-users] interger to binary

2008-09-08 Thread Marjolaine Rouault
Hi all, Michael's solution worked like a charm. Thanks to all for your valuable input! Rgs. >>> Michael Droettboom <[EMAIL PROTECTED]> 09/05/08 7:54 PM >>> You could do something like: def bitget(value, bit_number): return (value & (1 << bit_number)) != 0 which will return True or False fo

[Matplotlib-users] Multiple column legends

2008-09-08 Thread Jose Gómez-Dans
Hi! About a year ago, Jouni Seppänen indicated how to put a number of patches in a legend. So far so good. Now, it turns out that I do have quite a lot of patches to throw into this legend, and it would be nice, rather than to have a single column, to have the possibility to arrange these patche

Re: [Matplotlib-users] Re-projecting raster data with Basemap

2008-09-08 Thread Jeff Whitaker
Jose Gómez-Dans wrote: > Hi, > I am starting to play with Basemap. I have some raster data in > longitude/latitude (WGS-84, EPSG: 4326). I would like to plot it using > imshow, and to then plot some country boundaries and so on and so forth. I > have studied the plotprecip.py example in Basemap

[Matplotlib-users] path and bbox

2008-09-08 Thread Evan Mason
Hi, wonder if anyone can help me with path and bbox. I have a set of ocean drifter tracks and I want to know if they pass through a particular boxed area. This is straightforward to do but I wanted to try to do it with matplotlib.transforms and matplotlib.path, which look well-suited to this kind

[Matplotlib-users] Re-projecting raster data with Basemap

2008-09-08 Thread Jose Gómez-Dans
Hi, I am starting to play with Basemap. I have some raster data in longitude/latitude (WGS-84, EPSG: 4326). I would like to plot it using imshow, and to then plot some country boundaries and so on and so forth. I have studied the plotprecip.py example in Basemap's distribution, but as far as i

Re: [Matplotlib-users] problem with histogram

2008-09-08 Thread Antonino Cucchiara
Yes, I did indeed. Is it sufficient replace the matplotlib directory under the scisoft/ with the one available from the site (0.98.0) to update it? I also noticed that the available Fink package is also the matplotlib-0.91.0. Thanks, Nino Manuel Metz wrote: > Antonino Cucchiara wrote: > >> H

Re: [Matplotlib-users] problem with histogram

2008-09-08 Thread Manuel Metz
Antonino Cucchiara wrote: > Hello list, > I am trying to run the "histogram_demo_extended.py" on my mac 10.5. > I installed matplotlib through the scisoft package. > The normal hist command works fine but when I tried to use "align" or > "histtype" keyward I get this kind of error: > > [Macintosh

Re: [Matplotlib-users] [SciPy-user] how to plot the result of histogram2d

2008-09-08 Thread Johann Cohen-Tanugi
thanks Johan, I posted to scipy because of histogram2d being in numpy, sorry about that. Now the stupid question, why can't imshow directly parse histogram2d, without the transitory extent object? Anyway, I am happy that there is a simple way as explained below! thanks again, Johann John Hunter