zoukankan      html  css  js  c++  java
  • matlab 工具函数 —— axnote(在坐标轴上写文本内容)

    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' ...
        )
    
    
    
  • 相关阅读:
    Title
    Title
    Title
    Title
    Title
    Title
    Title
    Title
    Title
    git 的使用
  • 原文地址:https://www.cnblogs.com/mtcnn/p/9422723.html
Copyright © 2011-2022 走看看