title: matlab plot with multiple colormaps
body: <p>I want to create a plot with pcolor plot with an contour plot on top. Both with different colormaps - pcolor with "hot", the contour with "gray".</p>
  
  <p>I newer Matlab version multiple colormaps are possible.</p>
  
  <p>The code works, however both axis do not overlap, even if the axes positions are in sync.</p>
  
  <p><a href="https://i.stack.imgur.com/iVTJa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iVTJa.png" alt="enter image description here"></a></p>
  
  <pre><code>%% prepare Data
  Data2D = peaks(100);
  Data2D = Data2D -min(Data2D(:));
  Data2D = Data2D/max(Data2D(:)) * 100;
  steps = 0:05:100;
  
  xAxis = 1:size(Data2D,2);
  yAxis = 1:size(Data2D,1);
  
  figure(1); clf
  ax1 = axes;
  
  hold on;
  % 3D flat plot
  caxis([0 100]);
  cmap = fliplr(jet(1000));
  colormap(ax1, cmap(1:800,:));
  
  hplot = pcolor(ax1, xAxis, yAxis, Data2D);
  shading flat; % do not interpolate pixels
  
  set(ax1,'XLim',[xAxis(1) xAxis(end)]);
  set(ax1,'YLim',[yAxis(1) yAxis(end)]);
  
  % colorbar
  hcb = colorbar('location','EastOutside');    
  set(hcb, 'Ylim', [0 100]);
  
  
  %% contour plot
  ax2 = axes; linkaxes([ax1,ax2])
  
  colormap(ax2, flipud(gray(1000)));
  [C,hfigc] = contour(ax2, xAxis, yAxis, Data2D,steps);
  
  % Hide the top axes
  ax2.Visible = 'off';
  ax2.XTick = [];
  ax2.YTick = [];
  
  set(hfigc, 'LineWidth',1.0);        
  
  hold off;
  drawnow
  </code></pre>