On Sun, Jan 9, 2011 at 4:15 PM, Daniel Hyams <dhy...@gmail.com> wrote:

> Fix (and it looks like this would need to be fixed in 1.0.1 as well):
>
> A few lines up in draw() (line 183 in axis3d.py) there is a filter for
> throwing out grid lines that are outside the axis limits.  In
> exceptional cases though, "interval" has a greater number listed first,
> then the smaller.  That in and of itself might warrant
> further investigation, but simply replacing:
>
>    majorLocs = [loc for loc in majorLocs if \
>                 interval[0] <= loc <= interval[1]]
>
> with:
>         if interval[0] > interval[1]: interval[1],interval[0] =
> interval[0],interval[1]
>         majorLocs = [loc for loc in majorLocs if \
>                 interval[0] <= loc <= interval[1]]
>
> seems to solve the problem at hand.
>
>
Hmm, I would rather investigate  the cause of this instead.  Also, messing
around with the contents of the interval array might have implications
elsewhere.  As I noted in my previous email, there are still other problems
with mplot3d zooming that I would hardly call it "fiixed" at this point.

Good catch though, and it gives me a good starting place to examine this
further.

Ben Root
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to