Thanks for this. I believe both of these examples illustrate a shortcoming in Agg when the distance between two points on either end of a line is too great.
I'll do some digging around and see what may be causing this and if any limits can be adjusted -- I may not get to this today, however. Mike João Luís Silva wrote: > Jan Müller wrote: > >> Hi, >> >> The simple code snippet at the end of this mail should plot a single line. >> >> > > I can confirm this bug on Ubuntu running matplotlib svn revision 6827. > However I think it doesn't have to do with the log-scale but with the > big variations on the x-scale and the custom xscale. I've reproduced a > similar behavior with the following script (pan and zoom to see the > buggy behavior). > -------------------- > > import numpy as np > import matplotlib.pyplot as plt > > x = np.array([1.0,2.0,3.0,1.0E5,2.0E5]) > y = np.arange(len(x)) > plt.plot(x,y) > plt.xlim(xmin=2,xmax=6) > plt.show() > > -------------------- > > Best Regards, > João Silva > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel