MATLAB drawing font size control

Source: Internet
Author: User

There are various numbers and texts in the coordinate chart. Because of the relationship between the graph size, we often need to adjust the font size. Here we will briefly list the numbers and add them later ~

 

General method:

In the drawn graph, click Edit plot, and right-click the area you want to change. If you want to modify the area more complex, double-click the image, and then find the area to change.

 

Setting method:

Set the number size of the coordinate axis, including the legend text size:

Set (GCA, 'fontsize', 20 );

 

Set the size of the Mark text on the X axis (the Y axis is also the ylabel ):

Xlabel ('xxxx', 'fontsize', 18); % XXXX axis name

 

Set the curve width:

Plot (X, Y, 'R', 'linewidth', 2 );

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.