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

cannot display character character in static image #157

Open
williamay53 opened this issue Feb 2, 2023 · 4 comments
Open

cannot display character character in static image #157

williamay53 opened this issue Feb 2, 2023 · 4 comments

Comments

@williamay53
Copy link

Hi,

I find that I cannot write chinese character in static image, e.g. I have the following code:

`import plotly.express as px

df = px.data.gapminder().query("country=='Canada'")
fig = px.line(df, x="year", y="lifeExp", title="測試")
fig.write_image('test_chinese_character.png')`

the result is as follows:

test_chinese_character

@williamay53
Copy link
Author

I am using ubuntu 22.04.1 LTS, python3, plotly v5.10.0 and kaleido v0.2.1

@Jaorow
Copy link

Jaorow commented Feb 15, 2024

@williamay53 any solution found?
I am having the same error with plotty 5.18.0 and this line:

plotly.io.write_image(fig, temp_file+"/t.png", format="png")

@DCRcoder
Copy link

DCRcoder commented Mar 8, 2024

i got same problem. is there some solution about it.

@williamay53
Copy link
Author

I am using ubuntu, I install language pack using the following command to solve

sudo apt-get install language-pack-zh*
sudo apt-get install chinese*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants