【问题标题】:Matlab annotation in tabbed figure选项卡式图中的 Matlab 注释
【发布时间】:2018-11-01 10:33:37
【问题描述】:

向 Matlab 图形添加注释时,一切正常。但是当我尝试创建一个选项卡式图形(由多个选项卡组成)时,注释消失了。似乎它们被发送到图像的背景,但我不知道如何解决这个问题。有人有解决方案吗?我使用的代码是:

f1 = figure('WindowStyle','normal');
tabgroup = uitabgroup(f1);
tab1 = uitab(tabgroup, 'Title', 'Plot A');
ax1 = axes('Parent', tab1);
plot(1:10,(1:10).^2)
annotation('rectangle',[0.5 0.5 0.1 0.1],'LineWidth',2.5)

我正在使用 Matlab R2018a

【问题讨论】:

    标签: matlab tabs annotations figure tabbed


    【解决方案1】:

    强制注释在您想要的选项卡上:

    annotation(tab1,'rectangle',[0.5 0.5 0.1 0.1],'LineWidth',2.5)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-05-18
      • 1970-01-01
      • 2015-07-25
      • 2012-06-20
      • 1970-01-01
      • 2013-05-12
      • 2018-04-29
      相关资源
      最近更新 更多