您的位置:首页 > 编程语言 > MATLAB

matlab 工具函数 —— axnote(在坐标轴上写文本内容)

2016-11-18 16:34 435 查看
function axnote(string)

font_size = get(0, 'DefaultAxesFontSize');

if 1
h1 = text(0.99, 0.05, string, ...
'units', 'normalized', ...
'horizontalalignment', 'right', ...
'verticalalignment','bottom', ...
'backgroundColor','white', ...
'fontsize', font_size ...
);
end

if 0
h1 = text(0.99, 0.95, string, ...
'units', 'normalized', ...
'horizontalalignment', 'right', ...
'verticalalignment','top', ...
'backgroundColor','white', ...
'fontsize', font_size ...
);
end

return

h1 = text(1, 1, string, ...
'units', 'normalized', ...
'horizontalalignment', 'right', ...
'verticalalignment','top', ...
'backgroundColor','white' ...
)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: