title: Setting axis limit for plot
body: <p>I want to set the limit for X axis in this plot from  <code>0 to 325</code>. When i am using <code>xlim</code> to set the limits (commented in the code). It doesn't work properly. When i use <code>xlim</code>, the entire structure of plot changes. Any help will be appreciated.<a href="https://i.stack.imgur.com/DpukI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DpukI.png" alt="enter image description here"></a></p>
  
  <pre><code>figure
  imagesc(transpose(all_area_for_visual));
  colormap("jet")
  colorbar('Ticks',0:3,'TickLabels',{'Home ','Field','Bad house','Good house'})
  xlabel('Time (min)')
  tickLocs = round(linspace(1,length(final_plot_mat_missing_part(2:end,1)),8));
  timeVector = final_plot_mat_missing_part(2:end,1);
  timeForTicks = (timeVector(tickLocs))./60;
  xticks(tickLocs);
  xticklabels(timeForTicks);
  %xlim([0 325]);
  ylabel('Car identity')
  yticks(1:length(Ucolumnnames_fpm))
  yticklabels([Ucolumnnames_fpm(1,:)])
  </code></pre>