MATLAB coordinate axis Operation Summary

Source: Internet
Author: User
1. Point of View (viewpoint) of the coordinate axis: In which direction the whole coordinate system is viewed, which determines the direction and position of the coordinate axis. The view function is used to set the point of view; view ([z y]): (think of the coordinate system as a house, and you are a flying angel. At first, you are in the north of the house, and the altitude is 0, this is when your perspective is view [0 0]. Then you can set the values of Z and Y as needed, respectively, the orientation around the house rotation and the height along the space axis) Z indicates the angle from which the angle is rotated along the Z axis (positive direction), and y indicates the angle from which the angle is rotated along the Y axis (horizontal plane ).

2. Axis display, close, and style

Axis
Off;                      %Remove axis
AxisTight;                    %Coordinate Axis
AxisEqual;                    %Proportional coordinate axis
Axis ([-0.1,8.1,-1.1,1.1]);  %Axis display range

%GCA:GCA,H = figure (...);
Set (GCA,'Xlim', [340]);                  %Data Display range of X axis
Set (GCA,'Xticket', [-3.14, 0, 3.14]);        %Mark point on the X axis
Set (GCA,'Xticicklabel', {'-Pi', '0', 'Pi '});  %Mark of the X axis
Set (GCA,'Xticket ',[]);                    %Clear the mark points on the X axis
Set (GCA,'Xgrid', 'on ');                   %X axis Grid
Set (GCA,'Xdir', 'reverse ');               %Reverse X axis
Set (GCA,'Xcolor', 'red ');                 %X axis color

3. Set the X and Y axes.

Set (GCA, 'axislocation', 'right ')
%Set the scale of the Y axis to the right.


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.