While doing some further testing, I'm getting another bug in the svn
code - whenever I try to right-click and drag to zoom out when using
the toolbar, an Exception is raised complaining about an unbound
local. I traced the problem to what appears to be a typo in
backend_bases.py where someone must have renamed some variables and
didn't go and change them further up or something. Changing the
variable name in a couple places seems to make it all work on my
setup. The diff is attached.
On Feb 12, 2008 6:11 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Feb 12, 2008 7:02 PM, Erik Tollerud <[EMAIL PROTECTED]> wrote:
> > You're absolutely correct - I wrote the original patch against 91.2,
> > and forgot to test it against the new trunk. Below is a new patch
> > that HAS been tested against the trunk version. It includes another
> > fix for some API changes in the Rectangle object. Note that there's
> > also a fix in the RectangleSelector to prevent it from raising an
> > exception under the new API.
>
> OK, thanks Erik, I committed this to the trunk as svn r4956. It seems
> to be working fine, so thanks for the patch. I'm not sure right now
> wha the problem is with useblit=False that you are experiencing, but
> if you make any headway on this let us know.
>
> JDH
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
--
Erik Tollerud
Graduate Student
Center For Cosmology
Department of Physics and Astronomy
4155B Frederick Reines Hall
University of California, Irvine
Office Phone: (949)824-2996
Cell: (651)307-9409
[EMAIL PROTECTED]
Index: backend_bases.py
===================================================================
--- backend_bases.py (revision 4957)
+++ backend_bases.py (working copy)
@@ -1556,11 +1556,11 @@
if a.get_xscale()=='log':
alpha=npy.log(Xmax/Xmin)/npy.log(x1/x0)
rx1=pow(Xmin/x0,alpha)*Xmin
- x2=pow(Xmax/x0,alpha)*Xmin
+ rx2=pow(Xmax/x0,alpha)*Xmin
else:
alpha=(Xmax-Xmin)/(x1-x0)
rx1=alpha*(Xmin-x0)+Xmin
- x2=alpha*(Xmax-x0)+Xmin
+ rx2=alpha*(Xmax-x0)+Xmin
if a.get_yscale()=='log':
alpha=npy.log(Ymax/Ymin)/npy.log(y1/y0)
ry1=pow(Ymin/y0,alpha)*Ymin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel