[Matplotlib-users] unicode trouble

2015-07-06 Thread Neal Becker
This code runs on python3, but on python2 I get: Traceback (most recent call last): File per_vs_lambda.py, line 35, in module ax.set_xlabel (' ') File /usr/lib64/python2.7/site-packages/matplotlib/axes/_axes.py, line 179, in set_xlabel return self.xaxis.set_label_text(xlabel,

Re: [Matplotlib-users] unicode trouble

2015-07-06 Thread Christian Alis
Have you tried making the string unicode? ax.set_xlabel (u' ') -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs

Re: [Matplotlib-users] unicode trouble

2015-07-06 Thread Neal Becker
Christian Alis wrote: Have you tried making the string unicode? ax.set_xlabel (u' ') -- Oh, thanks. That works now on py2 and py3. --