Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32282ac

Browse files
committed
test conversion: move old-style test to new-style test
svn path=/trunk/matplotlib/; revision=7691
1 parent 46be108 commit 32282ac

3 files changed

Lines changed: 16 additions & 63 deletions

File tree

File renamed without changes.

lib/matplotlib/tests/test_axes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,19 @@ def test_shaped_data():
243243
pylab.plot( xdata[:,1], xdata[1,:], 'o' )
244244

245245
fig.savefig( 'shaped data' )
246+
247+
@image_comparison(baseline_images=['const_xy'])
248+
def test_const_xy():
249+
"""Test constant xy data."""
250+
fig = pylab.figure()
251+
252+
pylab.subplot( 311 )
253+
pylab.plot( np.arange(10), np.ones( (10,) ) )
254+
255+
pylab.subplot( 312 )
256+
pylab.plot( np.ones( (10,) ), np.arange(10) )
257+
258+
pylab.subplot( 313 )
259+
pylab.plot( np.ones( (10,) ), np.ones( (10,) ), 'o' )
260+
261+
fig.savefig( 'const_xy' )

test/test_plots/TestPlot.py

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)