From: <jd...@us...> - 2009-09-07 14:09:22
|
Revision: 7672 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7672&view=rev Author: jdh2358 Date: 2009-09-07 14:09:01 +0000 (Mon, 07 Sep 2009) Log Message: ----------- removed empty datetime example from test_axes; now in test_dates Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_axes.py Removed Paths: ------------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/empty_datetime.png Deleted: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/empty_datetime.png =================================================================== (Binary files differ) Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-06 23:28:28 UTC (rev 7671) +++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 14:09:01 UTC (rev 7672) @@ -4,21 +4,6 @@ import matplotlib.pyplot as plt import pylab -@knownfailureif('indeterminate', "Fails due to SF bug 2850075") -@image_comparison(baseline_images=['empty_datetime']) -def test_empty_datetime(): - """Test plotting empty axes with dates along one axis.""" - from datetime import datetime - - t0 = datetime(2009, 1, 20) - tf = datetime(2009, 1, 21) - - fig = pylab.figure() - pylab.axvspan( t0, tf, facecolor="blue", alpha=0.25 ) - fig.autofmt_xdate() - - fig.savefig( 'empty_datetime' ) - @image_comparison(baseline_images=['formatter_ticker_001', 'formatter_ticker_002', 'formatter_ticker_003', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <as...@us...> - 2009-09-07 20:56:25
|
Revision: 7701 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7701&view=rev Author: astraw Date: 2009-09-07 20:56:17 +0000 (Mon, 07 Sep 2009) Log Message: ----------- testing: remove docstrings on tests, which makes easier discovery of test location Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_axes.py trunk/matplotlib/lib/matplotlib/tests/test_basic.py trunk/matplotlib/lib/matplotlib/tests/test_dates.py Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:27:44 UTC (rev 7700) +++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:56:17 UTC (rev 7701) @@ -11,7 +11,6 @@ 'formatter_ticker_005', ]) def test_formatter_ticker(): - """Test Some formatter and ticker issues.""" import matplotlib.testing.jpl_units as units units.register() @@ -61,8 +60,6 @@ @image_comparison(baseline_images=['polar_axes']) def test_polar_annotations(): - """Polar Plot Annotations""" - # you can specify the xypoint and the xytext in different # positions and coordinate systems, and optionally turn on a # connecting line and mark the point with a marker. Annotations @@ -98,8 +95,6 @@ #-------------------------------------------------------------------- @image_comparison(baseline_images=['polar_coords']) def test_polar_coord_annotations(): - """Polar Coordinate Annotations""" - # You can also use polar notation on a catesian axes. Here the # native coordinate system ('data') is cartesian, so you need to # specify the xycoords and textcoords as 'polar' if you want to @@ -130,7 +125,6 @@ @image_comparison(baseline_images=['fill_units']) def test_fill_units(): - """Test the fill method with unitized-data.""" from datetime import datetime import matplotlib.testing.jpl_units as units units.register() @@ -172,7 +166,6 @@ @image_comparison(baseline_images=['single_point']) def test_single_point(): - """Test single-point plots.""" fig = pylab.figure() pylab.subplot( 211 ) pylab.plot( [0], [0], 'o' ) @@ -184,8 +177,6 @@ @image_comparison(baseline_images=['single_date']) def test_single_date(): - """Test single-point date plots.""" - time1=[ 721964.0 ] data1=[ -65.54 ] @@ -200,8 +191,6 @@ @image_comparison(baseline_images=['single_date']) def test_shaped_data(): - """Test numpy shaped data.""" - xdata = np.array([[ 0.53295185, 0.23052951, 0.19057629, 0.66724975, 0.96577916, 0.73136095, 0.60823287, 0.017921 , 0.29744742, 0.27164665], [ 0.2798012 , 0.25814229, 0.02818193, 0.12966456, 0.57446277, @@ -246,7 +235,6 @@ @image_comparison(baseline_images=['const_xy']) def test_const_xy(): - """Test constant xy data.""" fig = pylab.figure() pylab.subplot( 311 ) @@ -264,8 +252,6 @@ 'polar_wrap_360', ]) def test_polar_wrap(): - """Test polar plots where data crosses 0 degrees.""" - D2R = np.pi / 180.0 fig = pylab.figure() @@ -291,7 +277,6 @@ @image_comparison(baseline_images=['polar_units']) def test_polar_units(): - """Test polar plots with unitized data.""" import matplotlib.testing.jpl_units as units units.register() @@ -315,7 +300,6 @@ @image_comparison(baseline_images=['axvspan_epoch']) def test_axvspan_epoch(): - """Test the axvspan method with Epochs.""" from datetime import datetime import matplotlib.testing.jpl_units as units units.register() @@ -337,7 +321,6 @@ @image_comparison(baseline_images=['axhspan_epoch']) def test_axhspan_epoch(): - """Test the axhspan method with Epochs.""" from datetime import datetime import matplotlib.testing.jpl_units as units units.register() Modified: trunk/matplotlib/lib/matplotlib/tests/test_basic.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_basic.py 2009-09-07 20:27:44 UTC (rev 7700) +++ trunk/matplotlib/lib/matplotlib/tests/test_basic.py 2009-09-07 20:56:17 UTC (rev 7701) @@ -2,10 +2,8 @@ from matplotlib.testing.decorators import knownfailureif def test_simple(): - '''very simple example test''' assert_equal(1+1,2) @knownfailureif(True) -def test_simple_fail(): - '''very simple example test that should fail''' +def test_simple_knownfail(): assert_equal(1+1,3) Modified: trunk/matplotlib/lib/matplotlib/tests/test_dates.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_dates.py 2009-09-07 20:27:44 UTC (rev 7700) +++ trunk/matplotlib/lib/matplotlib/tests/test_dates.py 2009-09-07 20:56:17 UTC (rev 7701) @@ -115,7 +115,6 @@ @image_comparison(baseline_images=['DateFormatter_fractionalSeconds']) def test_DateFormatter(): - """Test DateFormatter""" import pylab from datetime import datetime import matplotlib.testing.jpl_units as units This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jd...@us...> - 2009-09-08 01:46:48
|
Revision: 7705 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7705&view=rev Author: jdh2358 Date: 2009-09-08 01:46:42 +0000 (Tue, 08 Sep 2009) Log Message: ----------- add basic image interp unit test Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_image/ trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_image/image_interps.png trunk/matplotlib/lib/matplotlib/tests/test_image.py Added: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_image/image_interps.png =================================================================== (Binary files differ) Property changes on: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_image/image_interps.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/matplotlib/lib/matplotlib/tests/test_image.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_image.py (rev 0) +++ trunk/matplotlib/lib/matplotlib/tests/test_image.py 2009-09-08 01:46:42 UTC (rev 7705) @@ -0,0 +1,31 @@ +import numpy as np + +from matplotlib.testing.decorators import image_comparison, knownfailureif +import matplotlib.pyplot as plt +from nose.tools import assert_raises + +@image_comparison(baseline_images=['image_interps']) +def test_image_interps(): + 'make the basic nearest, bilinear and bicubic interps' + X = np.arange(100) + X = X.reshape(5, 20) + + fig = plt.figure() + ax1 = fig.add_subplot(311) + ax1.imshow(X, interpolation='nearest') + ax1.set_title('three interpolations') + ax1.set_ylabel('nearest') + + ax2 = fig.add_subplot(312) + ax2.imshow(X, interpolation='bilinear') + ax2.set_ylabel('bilinear') + + ax3 = fig.add_subplot(313) + ax3.imshow(X, interpolation='bicubic') + ax3.set_ylabel('bicubic') + + fig.savefig('image_interps') + +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. |
From: <as...@us...> - 2009-09-11 02:30:49
|
Revision: 7743 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7743&view=rev Author: astraw Date: 2009-09-11 02:30:40 +0000 (Fri, 11 Sep 2009) Log Message: ----------- testing: add test image for hexbin_extent test, disable known failure Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_axes.py Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/hexbin_extent.png Added: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/hexbin_extent.png =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/hexbin_extent.png (rev 0) +++ trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/hexbin_extent.png 2009-09-11 02:30:40 UTC (rev 7743) @@ -0,0 +1,199 @@ +\x89PNG + + |
From: <md...@us...> - 2009-09-17 20:00:31
|
Revision: 7777 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7777&view=rev Author: mdboom Date: 2009-09-17 20:00:23 +0000 (Thu, 17 Sep 2009) Log Message: ----------- Add test for non-finite limits Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_axes.py Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/nonfinite_limits.png Added: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/nonfinite_limits.png =================================================================== (Binary files differ) Property changes on: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/nonfinite_limits.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-17 17:06:02 UTC (rev 7776) +++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-17 20:00:23 UTC (rev 7777) @@ -354,8 +354,16 @@ ax.hexbin(x, y, extent=[.1, .3, .6, .7]) fig.savefig('hexbin_extent') +@image_comparison(baseline_images=['nonfinite_limits']) +def test_nonfinite_limits(): + x = np.arange(0., np.e, 0.01) + y = np.log(x) + x[len(x)/2] = np.nan + fig = plt.figure() + ax = fig.add_subplot(111) + ax.plot(x, y) + fig.savefig('nonfinite_limits') - 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. |
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. |
From: <md...@us...> - 2010-05-12 15:28:00
|
Revision: 8313 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8313&view=rev Author: mdboom Date: 2010-05-12 15:27:53 +0000 (Wed, 12 May 2010) Log Message: ----------- [2963827] FontProperties does not seem to be working... Add a unit test to test the FontProperties confusing cases Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_text/ trunk/matplotlib/lib/matplotlib/tests/test_text.py Added: trunk/matplotlib/lib/matplotlib/tests/test_text.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_text.py (rev 0) +++ trunk/matplotlib/lib/matplotlib/tests/test_text.py 2010-05-12 15:27:53 UTC (rev 8313) @@ -0,0 +1,66 @@ +import numpy as np +import matplotlib +from matplotlib.testing.decorators import image_comparison, knownfailureif +import matplotlib.pyplot as plt + + +@image_comparison(baseline_images=['font_styles']) +def test_font_styles(): + from matplotlib.font_manager import FontProperties + + fig = plt.figure() + ax = plt.subplot( 1, 1, 1 ) + + normalFont = FontProperties( family = "sans-serif", + style = "normal", + variant = "normal", + size = 14, + ) + ax.annotate( "Normal Font", (0.1, 0.1), xycoords='axes fraction', + fontproperties = normalFont ) + + boldFont = FontProperties( family = "Foo", + style = "normal", + variant = "normal", + weight = "bold", + stretch = 500, + size = 14, + ) + ax.annotate( "Bold Font", (0.1, 0.2), xycoords='axes fraction', + fontproperties = boldFont ) + + boldItemFont = FontProperties( family = "sans serif", + style = "italic", + variant = "normal", + weight = 750, + stretch = 500, + size = 14, + ) + ax.annotate( "Bold Italic Font", (0.1, 0.3), xycoords='axes fraction', + fontproperties = boldItemFont ) + + lightFont = FontProperties( family = "sans-serif", + style = "normal", + variant = "normal", + weight = 200, + stretch = 500, + size = 14, + ) + ax.annotate( "Light Font", (0.1, 0.4), xycoords='axes fraction', + fontproperties = lightFont ) + + condensedFont = FontProperties( family = "sans-serif", + style = "normal", + variant = "normal", + weight = 500, + stretch = 100, + size = 14, + ) + ax.annotate( "Condensed Font", (0.1, 0.5), xycoords='axes fraction', + fontproperties = condensedFont ) + + ax.set_xticks([]) + ax.set_yticks([]) + + fig.savefig('font_styles') + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |