Chinese characters can't show correctly when using py.image.save_as


#1

With Chinese characters in the data, when using py.image.save_as to save the graph locally, the Chinese characters can’t show correctly as below:

Code:
trace = go.Bar(x=[2, 4, 6], y= [‘汽车’, ‘冰箱’, ‘空调’])
data = [trace]
layout = go.Layout(title=‘A Simple Plot’, width=800, height=640)
fig = go.Figure(data=data, layout=layout)
py.image.save_as(fig, filename=‘a-simple-plot.png’)

Result:

I have been trying to search documents if there is a place to configure in order to support Chinese characters, but so far in vain. Can anyone help me with it? Many thanks.