在matlab中为什么某些组件丢失或部分被遮挡

在matlab中为什么某些组件丢失或部分被遮挡

东西/原料

  • matlab软件
  • 电脑

方式/步调

  1. 1

    恢复编程结构

    此代码建立一个图形,其顶部面板包含一个轴,底部面板包含一个按钮和弹出菜单。

    hf = figure; 

    738b4710b912c8fc39dd0394f3039245d68821b9.jpg
  2. 2

    hb = uicontrol('Style','PushButton',...              

           'String','Plot',...              

           'Position',[175, 40, 60, 25]); 

    9a504fc2d56285355dc927789fef76c6a7ef63ba.jpg
  3. 3

    hpulabel = uicontrol('Style','text',...                     

           'String', 'Plot Type',...                     

           'Position', [300, 65, 60, 20]); 

    5fdf8db1cb134954dbdb623d594e9258d0094aa6.jpg
  4. 4

    hpu = uicontrol('Style', 'popupmenu',...                

           'String', {'bar', 'plot', 'stem'},...               

           'Position',[310, 40, 60, 25]); 

    aec379310a55b319c7d2772c4ca98226cffc17bb.jpg
  5. 5

    topp = uipanel('Title', 'Plot',...               

           'Position',[0 .25 1 .75]);

    7a899e510fb30f245b5d665ac795d143ac4b03a7.jpg
  6. 6

    ah = axes('Position', [.10, .35 .80 .60]); 

    d1a20cf431adcbefd21e8b5fa3af2edda3cc9f45.jpg
  7. 7

    bottomp = uipanel('Title','Plotting Options',...                  

           'Position',[0 0 1 .25]);

    500fd9f9d72a6059a7d66b432734349b023bbaa1.jpg

方式/步调2

  1. 1

    hf = figure;

    4ec2d5628535e5dd5e14508679c6a7efce1b62ab.jpg
  2. 2

    topph = uipanel('Parent', hf,'Title', 'Plot',...

                    'Position',[0 .25 1 .75]);

    b64543a98226cffc2f0a4aebb6014a90f603ea43.jpg
  3. 3

    axes('Parent', topph, 'Position', [.10, .35 .80 .60]);

    b7003af33a87e950ba2d06351f385343fbf2b4b5.jpg
  4. 4

    bottomph = uipanel('Parent', hf,'Title','Plotting Options',...

                       'Position',[0 0 1 .25])

    7a899e510fb30f245ab8195ac795d143ad4b034c.jpg
  5. 5

    hpulabel = uicontrol('Parent', bottomph, 'Style','text',...

                         'String', 'Plot Type',...

                         'Position', [300, 65, 60, 20]);

    c8177f3e6709c93d9fc7fbae903df8dcd10054b6.jpg
  6. 6

    hb = uicontrol('Parent', bottomph, 'Style','PushButton',...

                   'String','Plot',...

                   'Position',[175, 40, 60, 25]);

    b17eca8065380cd70b2a57b4ae44ad34598281b7.jpg
  7. 7

    hpu = uicontrol('Parent', bottomph, 'Style', 'popupmenu',...

                    'String', {'bar', 'plot', 'stem'},...

                    'Position',[310, 40, 60, 25]);

    8601a18b87d6277fd90ec76127381f30e924fc4f.jpg
  • 发表于 2020-03-08 20:55
  • 阅读 ( 328 )
  • 分类:其他类型

相关问题

0 条评论

请先 登录 后评论