How to plot a graph in SAGE using non-english symbols? -


simple command try run:

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

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 printable '%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) 

can this?

sagemath version 7.2, release date: 2016-05-15

apparently way use matplotlib doesn't allow non-ascii strings. see trac 21008.

update: ticket has fix , positive review, in sage 7.3, or possibly 7.4 depending on how fast 7.3 gets out.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -