From: David A. <dwa...@su...> - 2010-02-26 03:45:55
|
All, I tried this code from: http://matplotlib.sourceforge.net/examples/widgets/cursor.py from matplotlib.widgets import Cursor import pylab fig = pylab.figure(figsize=(8,6)) ax = fig.add_axes([0.075, 0.25, 0.9, 0.725], axisbg='#FFFFCC') #ax = fig.add_subplot(111, axisbg='#FFFFCC') canvas = ax.figure.canvas x,y = 4*(pylab.rand(2,100)-.5) ax.plot(x,y,'o') ax.set_xlim(-2,2) ax.set_ylim(-2,2) # set useblit = True on gtkagg for enhanced performance cursor = Cursor(ax, useblit=True, color='red', linewidth=2 ) pylab.show() I got this error on my Macbook Pro: The debugged program raised the exception unhandled AttributeError "'FigureCanvasMac' object has no attribute 'copy_from_bbox'" Any suggestions? David |