On Sun, Jan 9, 2011 at 3:55 PM, Daniel Hyams <dhy...@gmail.com> wrote:
> Fairly easy to demonstrate; run the code below, and press the right mouse > button in the middle of the box somewhere, > and rapidly zoom in/out. It might take a few seconds, but I end up with an > exception on both Windows and OSX. If it doesn't > give you an exception within a few seconds, let go of the right mouse > button, and zoom more. I just push the mouse to and fro > a few times, and it does it for me. > > File "C:\Python26\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py", line > 233, in draw > newval = get_flip_min_max(xyz1[0], newindex, mins, maxs) > IndexError: list index out of range > > I'm working on trying to fix, but I don't know enough about the code to be > confident that what I do won't break something else. > > --------------------------- cut ------------------------------------ > > from mpl_toolkits.mplot3d import Axes3D > from matplotlib.ticker import LinearLocator, FixedLocator, > FormatStrFormatter > import matplotlib.pyplot as plt > > fig = plt.figure() > ax = fig.gca(projection='3d') > plt.show() > > -- > Daniel Hyams > dhy...@gmail.com > > Technically speaking, axes3d zoom feature is very experimental (and temperamental as you have discovered). In particular, I have noticed issues for having multiple subplots, parts of the zoomed in figure will show up on the neighboring subplots. What would probably be the best way to "fix" this problem would be to re-implement zooming so that it simply changes the limits of the displayed 3d domain. I currently do not like how zooming also zooms the entire display (thereby losing sight of the axes labels and such). This approach would fix that issue as well. 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