From: Eric F. <ef...@ha...> - 2005-11-27 21:02:55
|
John, I think that the following change, from API_CHANGES, is causing trouble: made pos=None the default for tick formatters rather than 0 to indicate "not supplied" The symptom is that running (for example) contour_demo.py from the command line with gtkagg backend, I often, but not always, get a blast of errors like this: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 188, in motion_notify_event FigureCanvasBase.motion_notify_event(self, x, y) File "/usr/lib/python2.4/site-packages/matplotlib/backend_bases.py", line 797, in motion_notify_event func(event) File "/usr/lib/python2.4/site-packages/matplotlib/backend_bases.py", line 1085, in mouse_move try: s = event.inaxes.format_coord(event.xdata, event.ydata) File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 612, in format_coord ys = self.format_ydata(y) File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 605, in format_ydata val = func(y) File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line 152, in format_data return self.__call__(value) File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line 178, in __call__ else: return self.seq[pos] TypeError: list indices must be integers pos=None would certainly cause this...but I haven't checked it. (System is stock Mandriva 2006; mpl is CVS.) Eric |