Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some of Russian letters are not visible in EPS #2545

Closed
Felix-neko opened this issue Oct 25, 2013 · 3 comments
Closed

Some of Russian letters are not visible in EPS #2545

Felix-neko opened this issue Oct 25, 2013 · 3 comments
Milestone

Comments

@Felix-neko
Copy link

I have seen, that some of Russian letters (u'У' and u'Я') were not seen in EPS images, when I saved my plots, while PNG images was OK.

Cannot someone help me?

Here is the example:

# -*- coding: utf-8 -*-

import numpy as np

import matplotlib.pyplot as plt
import matplotlib
matplotlib.rc('font', **{'sans-serif' : 'Arial', 'family' : 'sans-serif'})

plt.plot([0, 1, 2], [1,2,4], label=u"!!!ЭЭЭЭ and ЯЯЯЯ and УУУ!!!") #label must be u"!!!ЭЭЭЭ and ЯЯЯЯ and УУУ!!!"

plt.legend()
plt.savefig("BadEps.eps")
plt.savefig("GoodPng.png")

plt.show()
@tacaswell tacaswell added this to the v1.4.x milestone Aug 17, 2014
@tacaswell
Copy link
Member

@mdboom Who is the unicode expert?

@Felix-neko Could this be a font issue where you don't have the correct type of font for the eps installed? Could you re-test this on the 1.4.0 release candidates?

@tacaswell
Copy link
Member

#2684 seems to say that eps can only deal with ascii...

@mdboom
Copy link
Member

mdboom commented Aug 25, 2014

Yeah -- I wouldn't expect the PS backend to handle this. There's no unicode support in Postscript, so anything we could do there would be region-specific hacks. Postscript is basically obsolete for this kind of thing. It's probably doable, but it's tough given our small resources. The PDF and SVG backends work fine, however, and they can be converted with third-party tools to PS. I'm closing as won't fix.

@mdboom mdboom closed this as completed Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants