Matlab 绘图中set函数使用汇总
set(get(gca,'title'),'FontSize',10,'FontName','宋体');
set(get(gca,'XLabel'),'FontSize',10,'FontName','Times New Roman');
set(get(gca,'YLabel'),'FontSize',10,'FontName','Times New Roman');
set(gca,'FontName','Times New Roman','FontSize',10)
text(0.3,1.2,'(a)','FontSize',10,'FontName','Times New Roman');
set(gca, 'XTick', [0 10 20 30 40 50 60 70 80 90])
set(gca,'XTickLabel',{'0','10','20','30','40','50','60','70','80','90'})
set(gca, 'YTick', [-15 -10 -5 0 5 10 15])
set(gca,'YTickLabel',{'-15','-10','-5','0','5','10','15'})
axis([0,90,-20,20])
set(gca,'YTickLabel',[]);
set(gca,'XTickLabel',[]);
set(gca,'ytick',[]);
set(gca,'xtick',[]);
figure;
set (gcf,'Position',[400,300,600,200]);
set (gcf,'units','centimeters','Position',[4,3,6,2]);
fiure('units','centimeters','Position',[4,3,6,2]);
hc=findobj(allchild(gcf), 'Type', 'axes');
hc2=findobj(allchild(hc), 'Type', 'text');
set(hc2(3), 'Position', [0 0 0]);
hc=findobj(allchild(gcf), 'Type', 'axes');
hc2=findobj(allchild(hc), 'Type', 'text');
set(hc2(4), 'Position', [0 0 0]);
[AX,H1,H2]=plotyy(f1e-12,abs(T1.T1),f1e-12,angle(T1.T1));
set(AX,'FontSize',14,'FontName','Times New Roman')
set(AX(1),'Xcolor','k','Ycolor','k');
set(AX(2),'Xcolor','k','Ycolor','k');
set(AX,'Xlim',[207.5 217.1],'xtick',[208:1:217]);
set(AX(1),'ylim',[0,0.5],'ytick',[0:0.1:0.5]);
set(AX(2),'ylim',[0,3],'ytick',[0:1:3]);
set(H1,'Linestyle','-','color','r','Linewidth',2.5);
line(x,y,'linestyle','-','color','r','Linewidth',2.5,'parent',AX(1));
set(H2,'Linestyle','-.','color','b','Linewidth',2.5);
set(get(AX(1),'Ylabel'),'string','Amplitude(a.u.)','FontSize',10,'FontName','Times New Roman','Position',[0 0 0 ]);
set(get(AX(2),'Ylabel'),'string','Phase(rad)','FontSize',10,'FontName','Times New Roman');
set(get(AX(1),'Xlabel'),'string','Opticalfrequency(THz)','FontSize',10,'FontName','Times New Roman');
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 一文读懂知识蒸馏
· 终于写完轮子一部分:tcp代理 了,记录一下