[Matplotlib-users] Memory leak involving matplotlib in webapplication

2011-10-13 Thread Viktor Forsman
Hi, I have problems with a memory leak in a webapplication involving matplotlib. Basically, I have a function which usies the OO way of generating the graph, printing it to a StringIO object and returning that. I've posted a question with the details on stackoverflow ( http://stackoverflow.com/que

[Matplotlib-users] Matplotlib 1.1.0 and PySide

2011-10-13 Thread Durrieu Jean-Louis
Dear all, matplotlib users and devs, I have been trying the latest announced version of Matplotlib (1.1.0). The new feature that attracted me is the PySide support. However, I tried to install it under Ubuntu 11.04, but I needed pyqt4 installed in order to install it from source. Is there a wa

Re: [Matplotlib-users] Memory leak involving matplotlib in webapplication

2011-10-13 Thread John Hunter
On Thu, Oct 13, 2011 at 12:42 AM, Viktor Forsman wrote: > Hi, > > I have problems with a memory leak in a webapplication involving matplotlib. > Basically, I have a function which usies the OO way of generating the graph, > printing it to a StringIO object and returning that. I've posted a questio

[Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread Neal Becker
Using interactively (via emacs/ipython), on closing a plot window I see: X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x5802e1b -- All the data continuously generat

Re: [Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread John Hunter
On Thu, Oct 13, 2011 at 8:03 AM, Neal Becker wrote: > Using interactively (via emacs/ipython), on closing a plot window I see: > >  X Error: BadWindow (invalid Window parameter) 3 >  Major opcode: 20 (X_GetProperty) >  Resource id:  0x5802e1b Could you give us some more information. What operati

Re: [Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread Neal Becker
linux fedora 15 x86_64 backend : Qt4Agg Now it's gone away, after killing the *Python* buffer and restarting the python process. If it comes back I'll try to get more info. John Hunter wrote: > On Thu, Oct 13, 2011 at 8:03 AM, Neal Becker > wrote: >> Using interactively (via emacs/ipython),

Re: [Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread Benjamin Root
On Thursday, October 13, 2011, Neal Becker wrote: > Using interactively (via emacs/ipython), on closing a plot window I see: > > X Error: BadWindow (invalid Window parameter) 3 > Major opcode: 20 (X_GetProperty) > Resource id: 0x5802e1b > > Which backend/platform? Ben Root --

Re: [Matplotlib-users] plotting two (x) axes for the same figure

2011-10-13 Thread Gökhan Sever
Hi, Not directly answering your questions but the code below produces what you are trying to achieve: import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.parasite_axes import SubplotHost plt.close('all') fig1 = plt.figure(figsize=(11, 8.5)) ax1 = SubplotHost(fig1, 111)

Re: [Matplotlib-users] Memory leak involving matplotlib in webapplication

2011-10-13 Thread Viktor Forsman
I use matplotlib 1.1 and numpy 1.5.0 gc.collect() after the function call solved the problem! Thanks alot! Den torsdagen den 13:e oktober 2011 skrev John Hunter: > On Thu, Oct 13, 2011 at 12:42 AM, Viktor Forsman > wrote: >> Hi, >> >> I have problems with a memory leak in a webapplication involv

Re: [Matplotlib-users] Matplotlib 1.1.0 and PySide

2011-10-13 Thread Fernando Perez
Hi Jean-Louis, On Thu, Oct 13, 2011 at 1:47 AM, Durrieu Jean-Louis wrote: > > Is that the right way to do so? Is there any way of setting the QT_API more > "definitely", and not having to change the call to python? > Yes, in your $HOME/.bashrc file that your shell loads at startup time, you can

Re: [Matplotlib-users] Matplotlib 1.1.0 and PySide

2011-10-13 Thread Eric Firing
On 10/12/2011 10:47 PM, Durrieu Jean-Louis wrote: > Dear all, matplotlib users and devs, > > I have been trying the latest announced version of Matplotlib > (1.1.0). The new feature that attracted me is the PySide support. > > However, I tried to install it under Ubuntu 11.04, but I needed pyqt4 >

Re: [Matplotlib-users] Matplotlib 1.1.0 and PySide

2011-10-13 Thread Durrieu Jean-Louis
Hi Eric, Fernando, thanks for your answers! On Oct 13, 2011, at 8:47 PM, Eric Firing wrote: > On 10/12/2011 10:47 PM, Durrieu Jean-Louis wrote: > > There is no compiled qt4 code, so installation should not require > pyqt4--and I don't think it does. What led to your conclusion that you > nee

Re: [Matplotlib-users] Matplotlib 1.1.0 and PySide

2011-10-13 Thread Eric Firing
On 10/13/2011 09:50 AM, Durrieu Jean-Louis wrote: > Hi Eric, Fernando, > > thanks for your answers! > > On Oct 13, 2011, at 8:47 PM, Eric Firing wrote: > >> On 10/12/2011 10:47 PM, Durrieu Jean-Louis wrote: >> >> There is no compiled qt4 code, so installation should not require >> pyqt4--and I don'

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread questions anon
Another quick question, I noticed that the wind direction appeared back-to-front so I have added a negative to my equation as I am in the southern hemisphere. It now looks correct but I wanted to check if this is the right way to do this? I saw something called 'flip' for barb but nothing for quiv

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread Benjamin Root
On Thursday, October 13, 2011, questions anon wrote: > Another quick question, > I noticed that the wind direction appeared back-to-front so I have added a negative to my equation as I am in the southern hemisphere. It now looks correct but I wanted to check if this is the right way to do this? I

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread Eric Firing
On 10/13/2011 12:22 PM, Benjamin Root wrote: > > > On Thursday, October 13, 2011, questions anon > wrote: > > Another quick question, > > I noticed that the wind direction appeared back-to-front so I have > added a negative to my equation as I am in the southern

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread questions anon
Thanks, Ben, that makes sense although I think the angles I have can be considered the direction 'to' and I want direction 'from' so adding a negative makes them come from the direction I need. I should add I don't really know what flip does so will ignore that. thanks for the responses. On Fri

[Matplotlib-users] key_press_event weirdness

2011-10-13 Thread Jorge Scandaliaris
Hi, I am experiencing something a bit strange with 'key_press_event': The event is not detected unless I click with the mouse on the canvas (The grey area around the axis). I verified this with my own code as well as with some unmodified example ( http://matplotlib.sourceforge.net/examples/event_h

Re: [Matplotlib-users] key_press_event weirdness

2011-10-13 Thread Benjamin Root
On Thu, Oct 13, 2011 at 9:52 PM, Jorge Scandaliaris wrote: > Hi, > > I am experiencing something a bit strange with 'key_press_event': The event > is > not detected unless I click with the mouse on the canvas (The grey area > around > the axis). I verified this with my own code as well as with som