Revision: 7169
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7169&view=rev
Author:   astraw
Date:     2009-06-01 21:41:31 +0000 (Mon, 01 Jun 2009)

Log Message:
-----------
use cbook.is_string_like() instead of isinstance() for spines

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/spines.py

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2009-06-01 21:41:21 UTC (rev 7168)
+++ trunk/matplotlib/CHANGELOG  2009-06-01 21:41:31 UTC (rev 7169)
@@ -1,3 +1,5 @@
+2009-06-01 use cbook.is_string_like() instead of isinstance() for spines - ADS
+
 2009-06-01 cla() support for spines - ADS
 
 2009-06-01 Removed support for gtk < 2.4. - EF

Modified: trunk/matplotlib/lib/matplotlib/spines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/spines.py   2009-06-01 21:41:21 UTC (rev 
7168)
+++ trunk/matplotlib/lib/matplotlib/spines.py   2009-06-01 21:41:31 UTC (rev 
7169)
@@ -8,6 +8,7 @@
 import matplotlib.transforms as mtransforms
 import matplotlib.lines as mlines
 import matplotlib.patches as mpatches
+import matplotlib.cbook as cbook
 import warnings
 
 class Spine(martist.Artist):
@@ -87,7 +88,7 @@
         """calculate the offset transform performed by the spine"""
         self._ensure_position_is_set()
         position = self._position
-        if isinstance(position,basestring):
+        if cbook.is_string_like(position):
             if position=='center':
                 position = ('axes',0.5)
             elif position=='zero':


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to