Meteoinfolab Script Example: Chinese processing

Source: Internet
Author: User

The use of Chinese in scripts requires that you specify Unicode encoding, that is, to add u to a string containing Chinese, for example: U ' Chinese '. You also need to specify the font as a Chinese font. See the example below.

Script Program:

x = [1,2,3,4]y= [1,4,9,16]plot (x, Y,'r--*') ylabel (U'Y-Axis', Fontname=u'Song Body', fontsize=16) xlabel (U'X-Axis', Fontname=u'Song Body', fontsize=16) axis ([0,5,0,20]) title (U'Sample Graphics', Fontname=u'blackbody', Fontsize=18, Bold=false, color='Blue') Text (2, A, u'Callout', Fontname=u'italics', fontsize=18)

Meteoinfolab Script Example: Chinese processing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.