I got a problem with matplolib, when I want change font on matplotlib at Linux(Ubuntu Distribution) Server.
It didnot display Chinese or other non-ascii characters in matplotlib.
I using the following step to find matplotlib font folder
import matplotlib
print(matplotlib.matplotlib_fname())
Then download the SimHei.tff in matplotlib/font/tff folder
change the setting in matplotlibrc
Here is the problem when i try to rebuild using
from matplotlib.font_manager import _rebuild
_rebuild()
it shows the following error msg:
AttributeError:module 'matplotlib.font_manager' has no attribute '_rebuild'