On Mon, Oct 18, 2010 at 6:23 PM, Friedrich Romstedt <friedrichromst...@gmail.com> wrote: > 2010/10/18 LittleBigBrain <braingate...@gmail.com>: >> Hi Friedrich, >> >> Thanks for produce the patch. But I do not know how to use 'git'. And >> I cannot find the changes you made on web. >> though the latest update by you is 2 hours ago, in the online source >> archive the latest file is modified on October 11, 2010 in 'trunk'. > > Yes I agree, I didn't check, I was too quick. Thanks for this further > bug report in Friedrich Romstedt.py :-). I forgot to push the new > branch. > > The file is here online: > http://github.com/friedrichromstedt/matplotlib/blob/friedrichromstedt-get_cmap/lib/matplotlib/cm.py. > Notice that the default branch on the repo is grayscale, when you go > in via http://github.com/friedrichromstedt/matplotlib. > > I send the file attached. Just rename the current cm.py and put in > the new one, it should work. You said you were using svn before, so I > assumed you compiled yourself. How did you manage to use svn without > compiling? > > Can you run the test suite? > > Friedrich > The colormap functions seem all OK. But I got other errors irrelevant to your update. I manually checked all images invoking errors, they are all OK. Somehow, their file handles are not closed properly before reopening.
Here is the test result: >>> import nose >>> print nose.__version__ 0.11.4 >>> import PIL >>> print PIL.__version__ >>> from PIL import Image >>> Image.VERSION '1.1.7' >>> import matplotlib >>> matplotlib.__version__ '1.0.0' >>> matplotlib.test() FAILED (KNOWNFAIL=90, errors=14) ====================================================================== ERROR: matplotlib.tests.test_axes.test_basic_annotate ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\offset_points.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-offset_points.png (RMS 223.063) ====================================================================== ERROR: matplotlib.tests.test_axes.test_fill_units ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\fill_units.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-fill_units.png (RMS 58.830) ====================================================================== ERROR: matplotlib.tests.test_axes.test_single_point ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\single_point.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-single_point.png (RMS 11.705) ====================================================================== ERROR: matplotlib.tests.test_axes.test_single_date ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\single_date.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-single_date.png (RMS 583.302) ====================================================================== ERROR: matplotlib.tests.test_axes.test_shaped_data ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\shaped_data.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-shaped_data.png (RMS 823.859) ====================================================================== ERROR: matplotlib.tests.test_axes.test_const_xy ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\const_xy.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-const_xy.png (RMS 462.317) ====================================================================== ERROR: matplotlib.tests.test_axes.test_polar_wrap ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\polar_wrap_180.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-polar_wrap_180.png (RMS 59.783) ====================================================================== ERROR: matplotlib.tests.test_axes.test_polar_units ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\polar_units.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-polar_units.png (RMS 59.557) ====================================================================== ERROR: matplotlib.tests.test_axes.test_polar_rmin ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\polar_rmin.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-polar_rmin.png (RMS 40.497) ====================================================================== ERROR: matplotlib.tests.test_axes.test_symlog ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_axes\symlog.png vs. D:\works\matplotlibTest\result_images\test_axes\expected-symlog.png (RMS 71.042) ====================================================================== ERROR: matplotlib.tests.test_image.test_image_clip ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_image\image_clip.png vs. D:\works\matplotlibTest\result_images\test_image\expected-image_clip.png (RMS 323.003) ====================================================================== ERROR: matplotlib.tests.test_mathtext.test_mathtext ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_mathtext\mathtext.png vs. D:\works\matplotlibTest\result_images\test_mathtext\expected-mathtext.png (RMS 41.845) ====================================================================== ERROR: matplotlib.tests.test_mathtext.test_mathtext_stix ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_mathtext\mathtext_stix.png vs. D:\works\matplotlibTest\result_images\test_mathtext\expected-mathtext_stix.png (RMS 29.816) ====================================================================== ERROR: matplotlib.tests.test_mathtext.test_mathtext_stixsans ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\nose-0.11.4-py2.6.egg\nose\case.py", line 186, in runTest self.test(*self.arg) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 32, in failer result = f(*args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\testing\decorators.py", line 126, in decorated_compare_images '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: D:\works\matplotlibTest\result_images\test_mathtext\mathtext_stixsans.png vs. D:\works\matplotlibTest\result_images\test_mathtext\expected-mathtext_stixsans.png (RMS 21.471) ---------------------------------------------------------------------- Ran 150 tests in 100.386s ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users