Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-21 Thread Stephan Markus
I am using a workaround now. But that is a hackery solution. Before plotting my data I convert it to dBs and limit it to the lowest value I want to display. Then I plot it using a regular polar plot with a custom formatting function that sets the tick labels with respect to the data offset.

Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-17 Thread Stephan Markus
Ben, I should have mentioned that I already tried that. When I set the rscale to 'log' the plot crashes when zooming or mpl cannot even create it. Maybe some example code will help: from numpy import arange, sin, pi, cos, ones from matplotlib.backends.backend_tkagg import

Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-17 Thread Stephan Markus
Small update: I tried the very same code with MPL 1.0.1 and Python 2.5.0 on Linux 64 and Python 2.5.4 on Win32 and it runs w/o throwing any exceptions there! But: the behaviour is still not that what I expected. Still these issues are remaining: - the smallest magnitude (center magnitude in

[Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-16 Thread Stephan Markus
Hi, I am trying to display some complex values in a polar plot. Displaying linear magnitude vs. angle - of course - works without any issues. But I'd rather display the logarithmic magnitute vs. angle. Since the data for the radius gets negative then, it'll be wrapped around / rotated by 180deg

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2011-02-14 Thread Stephan Markus
That solution might be fine for static plots, but I my case I prefer my solution. My plot is quite interactive so using your solution causes many problems with my code. -- View this message in context:

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2011-02-10 Thread Stephan Markus
Right now I use a customized FigureCanvasTkAgg and overwrite the draw() and resize() methods to reset the z-order of the axes before drawing / resizing the figure and to restore the desired z-order afterwards. This works quite well but it would be nice to have the picking work like in version

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2011-01-20 Thread Stephan Markus
Hello! I am also using two axes in a plot and want to be able to pick the lines of both axes. So far I used MPL 0.99.3 and a button on my interface to change the z-order of the axes in order to be able to pick lines of the active axes and to see the correct x/y data in the navigation toolbar.

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-12 Thread Stephan Markus
Calling the garbage collector (gc.collect()) also makes no difference. Even deleting all references manually and dropping the toolbar code doesn't do the trick. Am 09.02.2010 16:19, schrieb Stephan Markus: I already had my destroy() method look like this: def destroy(self

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-09 Thread Stephan Markus
I already had my destroy() method look like this: def destroy(self): self.f.clf() Tix.Frame.destroy(self) self.toolbar.destroy() self.canvas._tkcanvas.destroy() But it makes no difference. Stephan Am 08.02.2010 17:15, schrieb Michael Droettboom: Have you

[Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-04 Thread Stephan Markus
Hello! I'm writing an application that will show different plots on it's GUI. In order to switch between the different plot types I'd like to destroy the first plot and to create a new afterwards. I stumbled into a memory leak since I don't know how to close matplotlib figures the clean way. I