advised. Then i deleted the fontList.cache de matplotlib to force its
> updating, and ran the script with """ fontname="WenQuanYi Zen Hei" """
>
> I can now display the characters and save the plots as pdf.
>
> Thanks a lot for you wise help, i
ich prevents me from exporting into pdf
>> - I do not manage to make mpl take into account microhei and zenhei,
>> whereas i have them in
>> '/usr/share/fonts/truetype/wqy/wqy-microhei.ttc'. I changed their name
>> to '/usr/share/fonts/truetype/wqy/wqy-microhe
uot;"
>
> Unfortunately, apart from copying lines of code, i cannot do much with the
> blog you mention, as i don't understand what is written in it.
>
> @Mike: "monospace" family is one that enables me to display accents of
> french words, for the xticks. "f
maybe change the line
"""axim.set_yticklabels(ytics,fontsize=15,family='fantasy')""" to
"""axim.set_yticklabels(ytics,fontsize=15, fontname= "simsun (founder
extended)")"""
(or replace fontname with "simhei" or "microsoft yahei") is enough.
or, put these two lines:
mpl.rcParams['font.sans-serif']
t.show();
>
> The value (True|False) of interactive mode does not make a difference to
> the plotting.
> Other suggestionst?
>
> Thanks so far!
>
> 2009/9/19 sunqiang
>
> may be you can try pyplot.ion()? it turns interactive mode on.
>> Hope this helps.
>
may be you can try pyplot.ion()? it turns interactive mode on.
Hope this helps.
On Sat, Sep 19, 2009 at 1:11 PM, Thomas Hrabe wrote:
>
> Hi all,
>
> I am a beginner with matplotlib and doing my first steps with python
> plotting.
> However, I learned that pyplot.show really forces the display of