João et al., Thanks for the bug report. Mike D. has fixed the problem in svn. (I had moved the discussion to matplotlib-devel; I am just reporting back to matplotlib-users so this thread can be closed.)
Eric Eric Firing wrote: > wafels wrote: >> Hello, >> >> I can confirm and extend this bug report. The axvline also moves to the >> wrong position on resizing the matplotlib display window (Mac OS X 10.5.5, >> Python 2.5.1, Matplotlib 0.98.3). >> >> Thanks > > It looks like the transform for the line made by axvline is not getting > updated when view limits change. The problem is found in svn, after the > changes I made to axvline, as well as in 0.98.3. I can't track it down > right now. > > Eric > >> >> >> João Luís Silva-2 wrote: >>> Hi, >>> >>> A vertical line on the x axis of a semilogy plot will be in the correct >>> position, but when saved with the save button of the toolbar it will be >>> placed in an incorrect position, although savefig will do the right >>> thing. Furthermore, zooming will not move the axvline correctly. >>> >>> Matplotlib version: 0.98.3 >>> >>> Example script: >>> ----------------------------------------- >>> >>> import matplotlib.pyplot as pl >>> import numpy as np >>> >>> x = np.linspace(0.0,1.0,100) >>> >>> pl.semilogy(x,x**2) >>> pl.axvline(x=0.5,ls='--',color='k') >>> pl.show() >>> #pl.savefig("saved_image.png") >>> ----------------------------------------- >>> >>> image.png was saved using the toolbar, saved_image.png using savefig. >>> >>> Regards, >>> João Silva ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users