matlab text固定,[转载] 控制text位置-[Matlab]
[轉載] 控制text位置-[Matlab]
Sample code:
old_units = get(gca,'units');
set(gca,'units','inches');
ax_pos = get(gca,'position');
ax_width_inches = ax_pos(3);
set(gca,'units',old_units);
% text(ax_width_inches + 1.0, -0.3,
'benchmark','units','inches',
'FontWeight','normal','FontSize',myfontsize,'FontName','Times New
Roman');
text(ax_width_inches - 1.55, -0.3, 'f_L','units','inches',
'FontWeight','normal','FontSize',myfontsize,'FontName','Times New
Roman','fontangle','italic');
text(ax_width_inches + 0.15, -0.3, 'f_C','units','inches',
'FontWeight','normal','FontSize',myfontsize,'FontName','Times New
Roman','fontangle','italic');
text(ax_width_inches + 1.65, -0.3, 'f_H','units','inches',
'FontWeight','normal','FontSize',myfontsize,'FontName','Times New
Roman','fontangle','italic');
?Reference:?http://uk.mathworks.com/matlabcentral/newsreader/view_thread/10932
總結
以上是生活随笔為你收集整理的matlab text固定,[转载] 控制text位置-[Matlab]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 阿里巴巴Dubbo实现的源码分析
- 下一篇: 为什么matlab显示error,【求救