I agree with your assessment -- it seems like a low-level difference in the freetype renderer. I guess we should increase the tolerance on these tests (by passing a tol keyword to the image_comparison decorator in test_mathtext.py). The default is 1e-3 -- we just need to find the minimum value that makes these pass on your machine.
Mike On 09/23/2011 12:37 PM, John Hunter wrote: > On Fri, Sep 23, 2011 at 10:34 AM, Michael Droettboom<md...@stsci.edu> wrote: >> I'm not able to reproduce this here (git/master on Ubuntu 10.4, Python >> 2.7). Can you send and/or link to an example broken image? The way in >> which it is failing may illustrate the cause of the problem. It could >> also be that the difference in the freetype library/settings is causing >> enough difference to trip the threshold (we've seen that before). If >> that's the case (i.e. they look identical to the human eye, but there >> are some low-level differences in the anti-aliasing), we probably just >> need to increase the difference threshold on those tests. If, however, >> those tests worked on this system until recently, "git bisect" may >> reveal what caused the breakage. > > The images are extremely close by eye: I can see a little difference > on the font weight on the delta subscript in the attached images if I > toggle back and forth in eog, but it does look like a tolerance issue. > I don't exactly when this stopped working, but my platform info is: > > BUILDING MATPLOTLIB > matplotlib: 1.1.0 > python: 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC > 4.4.5] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 2.0.0.dev-aded70c > freetype2: 12.0.6 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.44 > Tkinter: Tkinter: 73770, Tk: 8.5, Tcl: 8.5 > Gtk-Message: Failed to load module "gnomesegvhandler": > libgnomesegvhandler.so: cannot open shared object file: No such file > or directory > Gtk-Message: Failed to load module "gnomesegvhandler": > libgnomesegvhandler.so: cannot open shared object file: No such file > or directory > Gtk+: gtk+: 2.22.0, glib: 2.26.1, pygtk: 2.21.0, > pygobject: 2.21.5 > Mac OS X native: no > Qt: Qt: 3.3.8, PyQt: 3.18.1 > Qt4: Qt: 4.7.0, PyQt4: 4.7.4 > Cairo: 1.8.8 > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: 1.5 > /home/jdhunter/dev/lib/python2.6/site-packages/pytz-2010h-py2.6.egg/pytz/__init__.py:32: > UserWarning: Module dateutil was already imported from > /home/jdhunter/dev/lib/python2.6/site-packages/dateutil/__init__.pyc, > but /usr/lib/pymodules/python2.6 is being added to sys.path > pytz: 2010h > > OPTIONAL USETEX DEPENDENCIES > dvipng: 1.13 > ghostscript: 8.71 > latex: 3.1415926 > pdftops: 0.14.3 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel