当前位置:网站首页>Matlab drawing | some common settings of axis
Matlab drawing | some common settings of axis
2022-07-25 09:45:00 【Frost Creek】
There are many uses for graphics , We are reading some papers , I often see some very beautiful pictures , This will make our understanding of the content more profound . Commonly used drawings have been written before , Write here after drawing , how Set the coordinate axis , Make the picture more in line with actual needs !
Basic graphics :

Code :x=0:pi/4:2*pi;y=sin(x);plot(x,y,'-co');
This picture is drawn directly , Next, set the coordinate axis !
![]()
01
axis off: Close all axis labels 、 scale 、 background
x=0:pi/4:2*pi;y=sin(x);plot(x,y,'-co');axis off;


02
axis([xmin xmax ymin ymax]): Set the coordinate range of the drawing , Respectively x The minimum of the axis 、 Maximum ,y The minimum and maximum value of the shaft .
x=0:pi/4:2*pi;y=sin(x);plot(x,y,'-co');axis([0,2*pi,-1,1]);
![]()
03
axis ij: Set the axis to matrix mode . At this time, the horizontal coordinate axis has a value from left to , Vertical coordinates from top to bottom
x=0:pi/4:2*pi;y=sin(x);plot(x,y,'-co');axis ij;


04
axis square: Set the axis to square
x=0:pi/4:2*pi;y=sin(x);plot(x,y,'-co');axis square;


05
axis equal : Set screen aspect ratio , Make everyone sit The scale axis has uniform scale interval
x=0:pi/4:2*pi;y=sin(x);plot(x,y,'-co');axis equal;

official account : Simple programming journey
Welcome to your attention !

边栏推荐
- @1-1 CCF 2021-04-1 gray histogram
- matlab的find()函数的一些用法(快速查找符合条件的值)
- Esp8266的Flash读写操作以及Flash上传文件
- How to write Android switching interface with kotlin
- @3-1 CCF 2020-09-1 scale detection point query
- How to convert object data into arrays
- Prim minimum spanning tree (diagram)
- What is cerebral fissure?
- [code source] daily problem segmentation (nlogn & n solution)
- Flex 布局语法与用例
猜你喜欢

OC -- Foundation -- Collection

The jar package has been launched on Alibaba cloud server and the security group has been opened, but postman still can't run. What should we do

语音聊天app源码-钠斯网络源码出品

MinkowskiEngine 安装

Job 7.15 shell script
![自定义 view 实现兑奖券背景[初级]](/img/97/53e28673dcd52b31ac7eb7b00d42b3.png)
自定义 view 实现兑奖券背景[初级]

Wechat applet realizes the rotation map (automatic switching & manual switching)
![[code source] National Railway](/img/33/ea786a10417487a2426be3a28d28aa.jpg)
[code source] National Railway

初识Opencv4.X----均值滤波

OC--Foundation--字符串+日期和时间
随机推荐
Voice chat app source code - produced by NASS network source code
Data query language (DQL)
matlab如何导入大量数据
Save pdf2image PDF file as JPG nodejs implementation
用kotlin怎么写Android切换界面
初识Opencv4.X----图像直方图匹配
Redis database foundation
expect+sh实现自动交互
cf #785(div2) C. Palindrome Basis
How to add other PHP versions to MAMP
How to customize the title content of uni app applet (how to solve the problem that the title of applet is not centered)
Redis set structure command
How many regions can a positive odd polygon be divided into
@1-1 CCF 2021-04-1 gray histogram
基于stm32的恒功率无线充电
初识Opencv4.X----ROI截取
[code source] daily question tree
Dream set sail (the first blog)
OC--类别 扩展 协议与委托
初识Opencv4.X----为图像添加高斯噪声