Various settings of x-axis in matlab

Source: Internet
Author: User
http://blog.csdn.net/yumengkk/article/details/6841164
1, the axis of view (viewpoint): from which direction to see the entire coordinate system, which determines the direction and position of the axis, through the view function to achieve the setting of the viewpoint; view ([Z y]): (think of the coordinate system as a house, and oneself is a flying angel, initially you in the north of the house, elevation angle of 0 position, this is when your perspective is view[0 0], then you can set the values of Z and y, respectively, the direction of rotation around the house, And the height of the princess along the space axis) z represents the angle at which the angle of view rotates along the z axis (positive direction), and y represents the angle at which the angle of view rotates along the y-axis (horizontal plane)

2, axis display, close, style

Axis off; % Remove axes
Axis tight; % Compact Axis
Axis equal; % equal than axis
Axis ([-0.1, 8.1,-1.1, 1.1]); The display range of the% axis

% GCA:GCA, h=figure (...);
Set (GCA, ' Xlim ', [3 40]); % x-axis data display range
Set (GCA, ' XTick ', [ -3.14,0,3.14]); % x-axis tick points
Set (GCA, ' Xticklabel ', {'-pi ', ' 0 ', ' pi '}); % x-axis notation
Set (GCA, ' XTick ', []); % clear tick points on X axis
Set (GCA, ' XGrid ', ' on '); % x-axis grid
Set (GCA, ' xdir ', ' reverse '); % reversal X-axis
Set (GCA, ' xcolor ', ' red '); % x-axis color

3. Set x, y axis position

Set (GCA, ' yaxislocation ', ' right ')% y-axis scale setting

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.