Sorry, I didn't see this latest e-mail before I replied before. I see the shearing now that I've adjusted window size. Maybe it could be related to the fact that width != span? Anyway, I'll investigated further and get back.
Cheers, Mike Darren Dale wrote: > On Friday 07 March 2008 4:58:03 pm 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? >> > > Here is an additional wrinkle, sometimes the pixmap is sheared, and sometimes > it is not. The behavior seems to shift back and forth when I change the > horizontal size of the figure window, bu I don't see a pattern emerging that > would explain why: 556-559 pixels wide is sheared, 560-564 looks ok, 565-567 > is sheared, 568 is normal, 569 and 570 are sheared, etc. The > animation_blit_qt4 demo also has the same problem, depending on the > horizontal size. So confusing. > > ------------------------------------------------------------------------- > 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