Revision: 7648
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7648&view=rev
Author: astraw
Date: 2009-09-06 01:43:29 +0000 (Sun, 06 Sep 2009)
Log Message:
-----------
testing: initial spine test (test for SF#2852168)
Modified Paths:
--------------
trunk/matplotlib/test/run-mpl-test.py
Added Paths:
-----------
trunk/matplotlib/lib/matplotlib/tests/test_spines.py
Added: trunk/matplotlib/lib/matplotlib/tests/test_spines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/tests/test_spines.py
(rev 0)
+++ trunk/matplotlib/lib/matplotlib/tests/test_spines.py 2009-09-06
01:43:29 UTC (rev 7648)
@@ -0,0 +1,22 @@
+import numpy as np
+import matplotlib
+matplotlib.use('Agg')
+from matplotlib.testing.decorators import image_comparison
+import matplotlib.pyplot as plt
+
+...@image_comparison(baseline_images=['spines_axes_positions.png'])
+def test_spines_axes_positions():
+ # SF bug 2852168
+ fig = plt.figure()
+ x = np.linspace(0,2*np.pi,100)
+ y = 2*np.sin(x)
+ ax = fig.add_subplot(1,1,1)
+ ax.set_title('centered spines')
+ ax.plot(x,y)
+ ax.spines['right'].set_position(('axes',0.1))
+ ax.yaxis.set_ticks_position('right')
+ ax.spines['top'].set_position(('axes',0.25))
+ ax.xaxis.set_ticks_position('top')
+ ax.spines['left'].set_color('none')
+ ax.spines['bottom'].set_color('none')
+ fig.savefig('spines_axes_positions.png')
Modified: trunk/matplotlib/test/run-mpl-test.py
===================================================================
--- trunk/matplotlib/test/run-mpl-test.py 2009-09-06 01:43:18 UTC (rev
7647)
+++ trunk/matplotlib/test/run-mpl-test.py 2009-09-06 01:43:29 UTC (rev
7648)
@@ -93,6 +93,7 @@
args.append('.')
args.append('matplotlib.tests.test_basic')
args.append('matplotlib.tests.test_transforms')
+args.append('matplotlib.tests.test_spines')
success = nose.run( argv = args,
plugins = [ MplNosePlugin(), KnownFailure() ] )
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