Revision: 7650
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7650&view=rev
Author:   astraw
Date:     2009-09-06 01:43:50 +0000 (Sun, 06 Sep 2009)

Log Message:
-----------
testing: clip abs diff image

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/testing/compare.py

Modified: trunk/matplotlib/lib/matplotlib/testing/compare.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/testing/compare.py  2009-09-06 01:43:40 UTC 
(rev 7649)
+++ trunk/matplotlib/lib/matplotlib/testing/compare.py  2009-09-06 01:43:50 UTC 
(rev 7650)
@@ -133,6 +133,6 @@
    absDiffImage = abs(expectedImage-actualImage)
    # expand differences in luminance domain
    absDiffImage *= 10
-   save_image_np = absDiffImage.astype(np.uint8)
+   save_image_np = np.clip(absDiffImage,0,255).astype(np.uint8)
    save_image = Image.fromarray(save_image_np)
    save_image.save(output)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to