在图表上显示文本在补丁上显示

时间:2016-08-04 09:42:31

标签: matlab matlab-figure

我需要有关在灰色色块中显示频率值的帮助。

Display frequency Label over the Graph lines in Gray patches

我在MATLAB中使用 set get 命令显示代码部分。在这件事上帮助我。

    int margin = 40; // Set your margin

    public MainPage()
    {
        this.InitializeComponent();
        InputTextBox.MaxWidth = Window.Current.Bounds.Width - margin;
        Window.Current.SizeChanged += Current_SizeChanged;
    }

    private void Current_SizeChanged(object sender, Windows.UI.Core.WindowSizeChangedEventArgs e)
    {
        var size = e.Size;
        InputTextBox.MaxWidth = size.Width - margin;
    }

1 个答案:

答案 0 :(得分:0)

您正在文本的顶部创建补丁。为了将文本定位在补丁上方,请尝试添加

uistack(h_text,'top')

到代码的末尾。

相关问题