Ask Your Question

Sergey Pashinin's profile - activity

2021-04-29 21:47:12 +0100 received badge  Famous Question (source)
2019-02-17 16:34:12 +0100 received badge  Notable Question (source)
2018-06-28 19:43:05 +0100 received badge  Popular Question (source)
2016-07-14 20:01:30 +0100 received badge  Good Question (source)
2016-07-13 12:21:16 +0100 received badge  Nice Question (source)
2016-07-13 09:14:21 +0100 received badge  Student (source)
2016-07-12 15:29:14 +0100 asked a question Is there a way to use non english symbols?

I try a simple command:

Graph({'Б':[1,2]}).plot().save("/tmp/plot.png")

but it fails:

/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib-1.5.1-py2.7-linux-x86_64.egg/matplotlib/text.py in set_text(self, s)
   1204         ACCEPTS: string or anything printable with '%s' conversion.
   1205         """
-> 1206         self._text = '%s' % (s,)
   1207         self.stale = True
   1208 

UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

How can I draw a graph with not only english symbols?