欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

matlab中 text 使用画图示例

发布时间:2023/12/13 44 豆豆
生活随笔 收集整理的这篇文章主要介绍了 matlab中 text 使用画图示例 小编觉得挺不错的,现在分享给大家,帮大家做个参考.
% Plot the image of the Sensitivity and False Positive per image clear; close all; clc; I1 =[0.5 75]; I2 =[1 54.5];msize =19; %设定字体的大小hold on plot(I1(1),I1(2),'ko-','MarkerFaceColor','r') % 红色实心圆点text(I1(1)+0.1,I1(2),'Wei 2002') hold on plot(I2(1),I2(2),'ko-','MarkerFaceColor','g') % 绿色实心圆点 text(I2(1)+0.1,I2(2),'Carreira 1998','fontsize',msize) hold on legend('Wei 2002','Carreira 1998') axis on; axis tight grid on axis([0 8 0 100]); ylabel('Sensitivity') xlabel('False Positivies per image')% 用set设定绘图坐标的FontSize属性,这种设定同时对坐标轴标注、图例、标题有效 h = gca; set(h,'FontSize',msize);% 设置文字大小,同时影响坐标轴标注、图例、标题等% x=0:0.2:12; % plot(x,sin(x),'-',x,1.5*cos(x),':') % legend('First','Second',-1); %强行将注释视窗放在图形视窗的外右边。

效果图如下

总结

以上是生活随笔为你收集整理的matlab中 text 使用画图示例的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。