[Matplotlib-users] Crosshair cursor utilising matplotlib.backends.backend_wxagg - proposal of adding the attached sample

2008-11-17 Thread Reinhard Jansohn
Hello, I already opened a thread which was unfortunately misspelled. In order to help other users finding this subject I correcr that. After looking at the hints I received - thanks a lot folks! - I created a sample which works to some extend. Four questions remain: 1. When I close my

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread Hrafnkell Pálsson
Hi I tried you suggestions but it didn't work out for me. In the following code I try to save the axes and the grid from figure1 into buffer and then restore it on figure2 but figure2.png turns out to be of an empty canvas. #!/usr/bin/env /opt/python/bin/python # encoding: utf-8 import

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread John Hunter
On Mon, Nov 17, 2008 at 8:05 AM, Hrafnkell Pálsson [EMAIL PROTECTED] wrote: Hi I tried you suggestions but it didn't work out for me. In the following code I try to save the axes and the grid from figure1 into buffer and then restore it on figure2 but figure2.png turns out to be of an empty

[Matplotlib-users] matplotlib egg finds wrong version of numpy

2008-11-17 Thread Jeff Mangum
Hello, I am having a problem installing matplotlib 0.93.3 from egg on Mac OSX 10.5.5. Even though I have numpy 1.2.1 installed in /Library/Frameworks/..., the egg insists on using an older version of numpy (1.0.4) in /opt/local/lib/python2.5/site-packages (which must have been delivered with

[Matplotlib-users] Shrinking the size of my legend

2008-11-17 Thread Florian Koelling
Hi Folks! I created a matplotlib bar chart containing 85 element. Now I'd like to add a legend - but when I tired it this way: plt.legend( (rect1[0], rect2[0],rect3[0]), ('1.00A_res_2.5tol', '0.50A_res_1.5tol','0.25A_res_1.0tol') ) a huge legend legend covers large parts of my barchart.

Re: [Matplotlib-users] pylab.close()

2008-11-17 Thread Michael Droettboom
I found the last leak exercised by your example. The window was keeping around a reference to the file selector dialog, creating a cyclical reference. Cyclical references containing Gtk objects can not be cleaned up by the Python garbage selector. By creating the file selector on-the-fly,

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread Jae-Joon Lee
I think the savefig() command calls draw() internally, doesn't it? So, I guess the restore_region() command comes before the draw() call, i.e., it has no effect for the saved figure. One way I can think of is to save the agg buffer without redrawing it. It seems work. ---

Re: [Matplotlib-users] matplotlib egg finds wrong version of numpy

2008-11-17 Thread Robert Kern
Jeff Mangum wrote: Hello, I am having a problem installing matplotlib 0.93.3 from egg on Mac OSX 10.5.5. Even though I have numpy 1.2.1 installed in /Library/Frameworks/..., the egg insists on using an older version of numpy (1.0.4) in /opt/local/lib/python2.5/site-packages (which must

[Matplotlib-users] Axis lines crossing in them middle of the plot

2008-11-17 Thread jason-sage
There is some work going on in Sage (http://www.sagemath.org) to more fully use matplotlib on a higher level than is currently done. One issue that is coming up is using matplotlib to make a plot with axis lines crossing in the center of the plot, like is shown in the plot at

Re: [Matplotlib-users] Axis lines crossing in them middle of the plot

2008-11-17 Thread Eric Firing
[EMAIL PROTECTED] wrote: There is some work going on in Sage (http://www.sagemath.org) to more fully use matplotlib on a higher level than is currently done. One issue that is coming up is using matplotlib to make a plot with axis lines crossing in the center of the plot, like is shown in the

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread John Hunter
On Mon, Nov 17, 2008 at 1:50 PM, Jae-Joon Lee [EMAIL PROTECTED] wrote: I think the savefig() command calls draw() internally, doesn't it? Ahh yes. The copy_from_bbox / restore_region was conceived as an aid to animation and I don't think I've used it in the context of savefig where none of the

[Matplotlib-users] Rescale imshow after zoom?

2008-11-17 Thread B Clowers
Matplotlibbers, While I though this would be fairly easy, I've yet to find a decent solution.  I'm interested in using the RangeSelector or standard zoom feature along with an autoscaling function.  In the example below there are two gaussian profiles created in a matrix.  I would like to

Re: [Matplotlib-users] Save a plot background

2008-11-17 Thread John Hunter
On Mon, Nov 17, 2008 at 8:05 AM, Hrafnkell Pálsson [EMAIL PROTECTED] wrote: Hi I tried you suggestions but it didn't work out for me. In the following code I try to save the axes and the grid from figure1 into buffer and then restore it on figure2 but figure2.png turns out to be of an empty