当前位置:网站首页>Q:MATLAB的图像上怎么标记数据点?&Text函数精讲
Q:MATLAB的图像上怎么标记数据点?&Text函数精讲
2022-04-22 23:59:00 【Carol0630】
参考:MATLAB的图像上怎么标记数据点?&Text函数精讲
text(x,y,txt)
该函数中 x,y 表示要添加的内容的位置,其实就是自己去指定坐标系中的一个坐标点,要添加的内容就从该点开始显示。txt 就是你要添加的文本(包括图形,文字,符号,数字等)。
不常用:箭头文字标注
text(pi,0,'\leftarrow sin(\pi)') %\leftarrow表示左箭头, 后面sin(pi)为标注内容
text(2,8,'A Simple Plot','Color','red','FontSize',14) %标记位置有颜色大小的字体
str = {
'A simple plot','from 1 to 10'};
text(5,7,str) %标记字符串,分行
常用:图形标注
xt = [2 9];
yt = [2 9];
str = {
'o','*'}; %圆圈
text(xt,yt,str)%添加两个图线上数据点的标记
text(6,6,'\diamondsuit','color','r','HorizontalAlignment','center','FontSize',12,'FontWeigh','bold')
%添加一个数据标记,红色,居中,字体加重
text(x,y,z,txt) %用法同理,只不过这是在三维画图中去添加标记内容。
版权声明
本文为[Carol0630]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Carol0630/article/details/124355609
边栏推荐
- 安川电机伺服软件SigmaWin+连接伺服驱动器无法连接问题
- pycharm界面改为中文,中英文切换
- ssh: connect to host 172.31.8.132 port 22: Connection refused
- Basic use of redis
- (mm-2018) local convolutional neural network for pedestrian re recognition
- FPGA(五)RTL代码之一(跨时钟域设计)
- Introduction to opencv (II) -- affine transformation and perspective transformation
- [leetcode] binary tree, in-depth understanding of the first, middle and last order
- STM32F103 independent watchdog
- Change the pycharm interface to Chinese and switch between Chinese and English
猜你喜欢

Detailed explanation of MySQL field types

Detailed explanation of MySQL index

Conjugate gradients (3)

闭包的实现原理和作用、以及内存泄露

xpath定位

Notes on "Introduction to dynamic programming" (under update)

“亿”点点技术情怀

Write a Tetris game in C language

The latest MySQL tutorial is easy to understand

Visual studio 2019 restore default settings
随机推荐
Reg regular expression learning notes
Good and bad articles on Technology
云计算仿真框架CloudSim介绍(截图版)
Ansible Yum warehouse
Typora style tuning
字符集合(去重)
用C语言编写一个俄罗斯方块小游戏
Visual studio 2019 restore default settings
AcWing 1842. Milk bucket traverses all situations
[turtle confession collection] "the moon at the bottom of the sea is the moon in the sky, and the person in front of us is the sweetheart." More joy and peace for the rest of your life ~ (with 3 sourc
根据宽度计算文字大小
学习 Rust
Bonner ultrasonic sensor t30uxda
Detailed explanation of seven common query connections in MySQL
合并两个有序的数组
People's understanding of the industrial Internet is becoming clearer and closer to the industrial Internet
SystemVerilog verification - Test Platform preparation guide learning notes (2): process statements and subroutines
根据角度进行旋转
STM32F103 independent watchdog
Failed to execute goal on project xxxxx