With the qt4agg backend, I also get no cursor with "useblit=False", but when "useblit=True" it seems to work just fine -- I don't see any shearing. By shearing I assume you mean the image is warped like a parallelogram? Or do mean tearing, in that it isn't updating fast enough? (FWIW, I don't see either).
What versions of Qt do you have? I've got: Qt: Qt: 3.3.3, PyQt: 3.17.2 Qt4: Qt: 4.3.0, PyQt4: 4.2 Cheers, Mike Darren Dale wrote: > I am having some trouble with the Cursor widget with the qt4agg backend. Here > is a short script which works with the gtkagg backend with useblit either > true or false: > > ---------- > from matplotlib import rcParams > rcParams['backend']='gtkagg' > from pylab import * > from matplotlib.widgets import Cursor > > t = arange(0.0, 1.0, 0.01) > s = sin(2*2*pi*t) > ax = subplot(111) > > cursor = Cursor(ax, useblit=True) > > ax.plot(t, s, 'o') > axis([0,1,-1,1]) > show() > ------------ > > If I use the qt4agg backend, with useblit False, the cursor lines do not > render. If useblit is True, the lines render but the pixmap inside the axes > is sheared. I've been looking at the backend_qt4agg code, the widgets.Cursor > code, and the working animation_blit_qt4 example, but I'm stuck. Does anyone > have any ideas? > > Thanks, > Darren > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel