PATCH: set_ticklabels() breaks with unicode labels

The function set_ticklabels() breaks if given unicode labels. Calling
str() on a unicode string doesn't always work.

--- axis.py.orig 2005-03-28 06:29:11.000000000 +0300
+++ axis.py 2005-05-17 15:01:48.000000000 +0300
@@ -734,7 +734,13 @@
instances.

ACCEPTS: sequence of strings"""
- ticklabels = [str(l) for l in ticklabels]
+ tl = []
+ for l in ticklabels:
+ if isinstance(l, basestring):
+ tl.append(l)
+ else:
+ tl.append(str(l))
+ ticklables = tl

         self.set_major_formatter( FixedFormatter(ticklabels) )

···

--
Patrik