From: <md...@us...> - 2009-10-09 16:32:36
|
Revision: 7861 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7861&view=rev Author: mdboom Date: 2009-10-09 16:32:29 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Add regression test for Agg backend hatch clipping Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_simplification.py Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_simplification/hatch_simplify.pdf trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_simplification/hatch_simplify.png Added: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_simplification/hatch_simplify.pdf =================================================================== (Binary files differ) Property changes on: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_simplification/hatch_simplify.pdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_simplification/hatch_simplify.png =================================================================== (Binary files differ) Property changes on: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_simplification/hatch_simplify.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/matplotlib/lib/matplotlib/tests/test_simplification.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_simplification.py 2009-10-09 16:10:28 UTC (rev 7860) +++ trunk/matplotlib/lib/matplotlib/tests/test_simplification.py 2009-10-09 16:32:29 UTC (rev 7861) @@ -106,6 +106,17 @@ fig.savefig('simplify_curve') +@image_comparison(baseline_images=['hatch_simplify']) +def test_hatch(): + fig = plt.figure() + ax = fig.add_subplot(111) + ax.add_patch(Rectangle((0, 0), 1, 1, fill=False, hatch="/")) + ax.set_xlim((0.45, 0.55)) + ax.set_ylim((0.45, 0.55)) + + fig.savefig('hatch_simplify') + + if __name__=='__main__': import nose nose.runmodule(argv=['-s','--with-doctest'], exit=False) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |