Commit 4201b156 by Steven Bird

converted plot xticks to unicode, to resolve issue 669

parent febeabc7
......@@ -326,7 +326,7 @@ class FreqDist(dict):
pylab.title(kwargs["title"])
del kwargs["title"]
pylab.plot(freqs, **kwargs)
pylab.xticks(range(len(samples)), [str(s) for s in samples], rotation=90)
pylab.xticks(range(len(samples)), [unicode(s) for s in samples], rotation=90)
pylab.xlabel("Samples")
pylab.ylabel(ylabel)
pylab.show()
......@@ -1839,7 +1839,7 @@ class ConditionalFreqDist(object):
pylab.legend(loc=legend_loc)
pylab.grid(True, color="silver")
pylab.xticks(range(len(samples)), [str(s) for s in samples], rotation=90)
pylab.xticks(range(len(samples)), [unicode(s) for s in samples], rotation=90)
if title:
pylab.title(title)
pylab.xlabel("Samples")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment