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
dhyams@…287…