Re: [Matplotlib-users] imshow and projections

2008-09-05 Thread Michael Droettboom
Erik Tollerud wrote: > I've been playing with some of the projections in matplotlib, > recently, and have some questions/noticed some odd behavior: > > 1. Is there any way to activate a projection mode with the pyplot > interface other than the subplot(111,projection='whatever') method a > la /exam

Re: [Matplotlib-users] Hatching not working in matplotlib 0.98

2008-09-05 Thread Michael Droettboom
Thanks for the report. Indeed, it was drawing the fill over top of the hatch, rather than the other way around. This has now been fixed in SVN r6068. You can use that patch to patch your local copy, if you're not tracking SVN. Cheers, Mike Crend King wrote: > I tried hatch option in pylab.b

[Matplotlib-users] interger to binary

2008-09-05 Thread Marjolaine Rouault
Hi, I was wondering if python has the equivalent of the matlab bitget.m function. I have a large 2 dimensional variable of type uint32 which I must convert to binaries and then find if bit 23 of the binary for each point is 0 or 1. The matlab bitget function is ideal for that but I can't find m

Re: [Matplotlib-users] interger to binary

2008-09-05 Thread Michael Droettboom
You could do something like: def bitget(value, bit_number): return (value & (1 << bit_number)) != 0 which will return True or False for the given bit number, and this function works on numpy arrays. (Bits are numbered base-0 -- I don't know if that matches matlab). Hope that helps, Mike

[Matplotlib-users] Python for scientists file exchange

2008-09-05 Thread Kaushik Ghose
Hi Everyone, As I've been learning python and using it more and more in my analysis work I've been wondering where I can go to post and find code snippets for python. A central file exchange, much like matlab's file exchange, would be great. I'm thinking of a very streamlined, blog like interf

Re: [Matplotlib-users] Python for scientists file exchange

2008-09-05 Thread Michael Droettboom
There is a SciPy Cookbook here: http://www.scipy.org/Cookbook And also a more general Python cookbook here: http://code.activestate.com/recipes/langs/python/ Other list members may have other resources, too, but those are two I use on a regular basis. Mike Kaushik Ghose wrote: > Hi Everyone,

Re: [Matplotlib-users] OS X Bad Aspect Ratio

2008-09-05 Thread David Warde-Farley
On 4-Sep-08, at 10:03 PM, Josh Lawrence wrote: > Hey all, > > When I plot using python 2.5.2 and matplotlib 0.98.3 (and 0.98.1) I > have the following problem. If I run a script from the command line > that plots and saves the figure, I get the default aspect ratio of (8, > 6). If, however, I clos