Revision: 7679
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7679&view=rev
Author: astraw
Date: 2009-09-07 20:01:17 +0000 (Mon, 07 Sep 2009)
Log Message:
-----------
testing: remove duplicate code
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/tests/test_axes.py
Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 19:19:23 UTC
(rev 7678)
+++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:01:17 UTC
(rev 7679)
@@ -13,23 +13,8 @@
def test_formatter_ticker():
"""Test Some formatter and ticker issues."""
import matplotlib.testing.jpl_units as units
- def register_units():
- """Register the unit conversion classes with matplotlib."""
- import matplotlib.units as munits
- import matplotlib.testing.jpl_units as jpl_units
- from matplotlib.testing.jpl_units.Duration import Duration
- from matplotlib.testing.jpl_units.Epoch import Epoch
- from matplotlib.testing.jpl_units.UnitDbl import UnitDbl
+ units.register()
- from matplotlib.testing.jpl_units.StrConverter import StrConverter
- from matplotlib.testing.jpl_units.EpochConverter import EpochConverter
- from matplotlib.testing.jpl_units.UnitDblConverter import
UnitDblConverter
-
- munits.registry[ str ] = StrConverter()
- munits.registry[ Epoch ] = EpochConverter()
- munits.registry[ UnitDbl ] = UnitDblConverter()
- register_units()
-
# This essentially test to see if user specified labels get overwritten
# by the auto labeler functionality of the axes.
xdata = [ x*units.sec for x in range(10) ]
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