title: Why does tabbed plots remove my title and labels?
body: <p>I have created two figures which contains a new tab for each plot.
  However only Figure2 contains "title" and "labels" on the plot and it also contains the "legend" which should have been on Figure1 - tab2.
  Any suggestions why this happens? </p>
  
  <pre><code>figure_handles(1).mainfig = figure;
  figure_handles(1).tabgroup = uitabgroup;
  figure_handles(2).mainfig = figure;
  figure_handles(2).tabgroup = uitabgroup;
  
  % Fig1, tab1
  newtab = uitab(figure_handles(1).tabgroup, 'Title', "tab1");
  ax1 = axes(newtab); 
  plot(ax1,rand(1,100)*10,rand(1,100)*10);
  title('FIG 1')
  xlabel('X label')
  ylabel('Y label')
  
  % Fig2, tab1
  newtab = uitab(figure_handles(2).tabgroup, 'Title', "tab1");
  ax = axes(newtab); 
  plot(ax,rand(1,100)*10,rand(1,100)*10);
  title('FIG 2')
  xlabel('X label')
  ylabel('Y label')
  
  % Fig1, tab2 with legend
  newtab = uitab(figure_handles(1).tabgroup, 'Title', "tab2");
  ax3 = axes(newtab);
  plot(ax3,rand(1,100)*10,rand(1,100)*10);
  hold on
  plot(ax3,rand(1,100)*10,rand(1,100)*10);
  legend('1', '2')
  title('FIG 1')
  xlabel('X label')
  ylabel('Y label')
  hold off
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0FMq4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0FMq4.png" alt=""></a>
  <a href="https://i.stack.imgur.com/qCK60.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qCK60.png" alt=""></a>
  <a href="https://i.stack.imgur.com/sfTbE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sfTbE.png" alt="enter image description here"></a></p>