axis matlab中,使用MATLAB中axis实现图形坐标控制 | 学步园

Matlab对图形风格的控制比较完备。一方面,在最通用的层面上,采用了一系列考虑周全的默认设置。另一方面,可用户根据需要去自己设置。坐标控制指令axis使用比较简单,用于控制坐标的可视,取向、取值范围和轴的高宽比等。

代码实现程序如下:

clear all;

close all;

clc;

t =0:2*pi/99:2*pi;

x =1.5*cos(t);

y =3.25*sin(t);

subplot(2,3,1),plot(x,y);

axis normal,grid on, title('Normal and Grid on')

subplot(2,3,2),plot(x,y);

axis equal,grid on, title('Equal and Grid on')

subplot(2,3,3),plot(x,y);

axis square,grid on, title('Square and Grid on')

subplot(2,3,4),plot(x,y);

axis image,box off,title('Image and Box off')

subplot(2,3,5),plot(x,y);

axis image fill,box off, title('Image fill and box off')

subplot(2,3,6),plot(x,y);

axis tight,box off, title('Tight and box off')

输出各种轴控制指令的不同影响

6b14d75d7b40b9395049a42a2bbecd4f.png

关于Image Engineering & Computer Vision的更多讨论与交流,敬请关注本博客和新浪微博songzi_tea.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值