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' ...
    )


posted on 2016-11-18 16:35  未雨愁眸  阅读(180)  评论(0编辑  收藏  举报