Re: [Matplotlib-users] Formatter dates

2010-11-22 Thread Tim Åberg
Thanks for the reply! I have been looking into it now and thinks i have get the hang of how it works rougly. Do you know any way to know the max-value of X straight away? I have a list of dates that with listlength Y, the X spans from 0 - something. So if i could figure out what something is i

Re: [Matplotlib-users] Formatter dates

2010-11-22 Thread Tim Åberg
Solved it, was thinking backwards again. From: qw...@hotmail.com To: matplotlib-users@lists.sourceforge.net Date: Mon, 22 Nov 2010 09:00:38 + Subject: Re: [Matplotlib-users] Formatter dates Thanks for the reply! I have been looking into it now and thinks i have get the hang of how it

[Matplotlib-users] rotate patch (rectangle)

2010-11-22 Thread Wolfgang Kerzendorf
Hello, I have tried in vain to rotate a rectangle patch. I tried to use AffineTransform2D.rotate_deg(20.) and apply it to the Rectangle with set_transform. If I add the patch it doesnt show. What is the right course of action here. Cheers Wolfgang

Re: [Matplotlib-users] Hammer projection grid

2010-11-22 Thread Tobias Winchen
Dear all, On Wednesday 17 November 2010 Benjamin Root wrote: Nevermind about the example script, I tested it myself and verified the problem. The fix was simple. We were missing a square root for the denominator of the formula for x and y. Before I submit this patch, can anybody with

Re: [Matplotlib-users] bar with zero data

2010-11-22 Thread Benjamin Root
On Mon, Nov 22, 2010 at 7:56 AM, andres luhamaa andresluha...@gmail.comwrote: Hello! I see strange behaviour in plotting bars with dates on x-axis. Example attached, problem seems to arise only after duplicating x-axis and with all-zero data. good.png is with non-zero data and bad.png with

Re: [Matplotlib-users] Hammer projection grid

2010-11-22 Thread Benjamin Root
On Mon, Nov 22, 2010 at 6:59 AM, Tobias Winchen winc...@physik.rwth-aachen.de wrote: Dear all, On Wednesday 17 November 2010 Benjamin Root wrote: Nevermind about the example script, I tested it myself and verified the problem. The fix was simple. We were missing a square root for the

Re: [Matplotlib-users] Possible memory leak?

2010-11-22 Thread Michael Droettboom
Caleb, Thanks for doing all of this investigation and providing something easy to reproduce. With the help of valgrind, I believe I've tracked it down to a bug in PyCXX, the Python/C++ interface tool matplotlib uses. I have attached a patch that seems to remove the leak for me, but as I'm

Re: [Matplotlib-users] Possible memory leak?

2010-11-22 Thread Benjamin Root
On Fri, Nov 19, 2010 at 3:14 PM, Caleb Constantine cadamant...@gmail.comwrote: On Thu, Nov 18, 2010 at 4:50 PM, Benjamin Root ben.r...@ou.edu wrote: Caleb, Interesting analysis. One possible source of a leak would be some sort of dangling reference that still hangs around even though

Re: [Matplotlib-users] Unknown projection '3d' even with svn version?

2010-11-22 Thread Benjamin Root
On Thu, Nov 18, 2010 at 2:30 AM, Eric Emsellem eemse...@eso.org wrote: Ok problem(s) solved, thanks a lot for the efficient help (this also taught me how to go through the code more thoroughly) * for the record: I had a pylab.py in the site-packages directory, probably a left-over from some

Re: [Matplotlib-users] Possible memory leak?

2010-11-22 Thread Eric Firing
On 11/22/2010 06:15 AM, Benjamin Root wrote: On Fri, Nov 19, 2010 at 3:14 PM, Caleb Constantine cadamant...@gmail.com mailto:cadamant...@gmail.com wrote: On Thu, Nov 18, 2010 at 4:50 PM, Benjamin Root ben.r...@ou.edu mailto:ben.r...@ou.edu wrote: Caleb,

[Matplotlib-users] Problem viewing mplot3d figure

2010-11-22 Thread Miguel Costa
Hello all. I'm attempting to use bar3d to plot a packing solution but from some viewpoints the perspective is wrong (boxes seem overlapped), and with a large number of boxes the plot is always incoherent. (I'm using matplotlib 1.0.0 on fedora 14) Does anyone know how to fix this? Cheers,

Re: [Matplotlib-users] Problem viewing mplot3d figure

2010-11-22 Thread Benjamin Root
On Mon, Nov 22, 2010 at 11:44 AM, Miguel Costa migueldiasco...@gmail.comwrote: Hello all. I'm attempting to use bar3d to plot a packing solution but from some viewpoints the perspective is wrong (boxes seem overlapped), and with a large number of boxes the plot is always incoherent. (I'm

Re: [Matplotlib-users] Problem viewing mplot3d figure

2010-11-22 Thread Miguel Costa
On Mon, Nov 22, 2010 at 5:56 PM, Benjamin Root ben.r...@ou.edu wrote: Miguel, This is a known issue with mplot3d. The issue is that the polygons are essentially abstracted 2-D objects that are using the same backend architecture as the core 2-D plotting software. I think your example

Re: [Matplotlib-users] Possible memory leak?

2010-11-22 Thread Benjamin Root
On Mon, Nov 22, 2010 at 11:32 AM, Eric Firing efir...@hawaii.edu wrote: On 11/22/2010 06:15 AM, Benjamin Root wrote: On Fri, Nov 19, 2010 at 3:14 PM, Caleb Constantine cadamant...@gmail.com mailto:cadamant...@gmail.com wrote: On Thu, Nov 18, 2010 at 4:50 PM, Benjamin Root

Re: [Matplotlib-users] Simple animation with Qt4 backend

2010-11-22 Thread Christopher Barker
On 11/21/10 9:43 AM, Gael Varoquaux wrote: Yes, I can confirm that adding processEvents in places to facilitate redraws is a good way to lead to segfaults. I have seen this in many places other than matplotlib. The reason Tk does not have this problem is that it deals with event loops in a