-
Notifications
You must be signed in to change notification settings - Fork 45
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
can’t open the file if the filename contains chinese. #55
Comments
Thank you for your feedback and for posting this. Could you maybe enclose
a small example file that reproduces the error?
Thanks a lot!
|
Also, can you mention if you cloned the repository (and if so which python
version are you using), or, if you downloaded a setup.exe file, which
version are you using? (Also shown in the menu Help of the app). thanks!
|
Glad for your reply.
|
Hi, Can you try the latest release version (version 242)? Issue 1: Opening files with unicode characters in them. The issue should be fixed now, it seemed to be a pandas issue. Issue 2: Pyplot does not support chinese characters. I fixed this issue, but it requires you to install a font. What I'm doing is detecting potential special characters in labels, and then applying the font "SimHei" (which seems to be the one people tend to use). For it to work, you need to download the font from here, and then you can place this file either:
import os
import matplotlib
fpath = os.path.join(matplotlib.rcParams['datapath'], 'fonts/ttf/SimHei.ttf')
print('Matplotlib data path : ', matplotlib.rcParams['datapath'])
print('New font file should be: ', fpath)
if os.path.exists(fpath):
print('[ OK ] Font is found')
else:
print('[FAIL] Font not found. Add it to the path above. )') Let me know if that works for you. It should look like that: |
Nice work! It works well now.Thanks a lot! By the way, there are two style now: the scatter and the line. If you could add the third style "scatter + line", it could be better. |
The pyDatView is wonderful. Thanks for the ebranlard's work.
But there are two bugs, they are both because of the chinese.
The text was updated successfully, but these errors were encountered: