Skip to content

any way to custom font in PyPlot? #114

@retsyo

Description

@retsyo

In order to display Chinese on the chart, I followed the instruction on http://blog.csdn.net/rumswell/article/details/6544377. But obviously, I failed. Any hints? Thanks
1)the first solution use dict in py, but how to translate it to Julia?
mpl.rcParams['font.sans-serif'] = ['SimHei']
plt.title(u'some Chinese here')

2)the second one use font_manager, which I cannot find after "using PyPlot"
myfont = font_manager.FontProperties(fname='C:/Windows/Fonts/msyh.ttf')
title(u'some Chinese here', fontproperties=myfont)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions