[转载] 控制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