title: setting the axis min and max values to stick
body: <p>I have a (3,4) subplot each showing scatterplots. The ranges of the scatterplots vary so some of my plots have axes x(0-30) and y(0-8), but some have x(18-22) and y(4-7). I have set my xlim to [0 30], and ylim to [0 8] but that sets my axes to never go lower than 0, higher than 30 etc.</p>
  
  <p>How do I set my axis to "stick" at (0,0) for the origin of each plot, and "stick" at 8 for Y and 30 for X.</p>
  
  <p>TIA for any help</p>
  
  <hr>
  
  <p><strong>update per comment on answer:</strong><br>
  Still having the same issue with below code</p>
  
  <pre><code>%% plot
  
  for i = 1:num_bins;
  
  h = zeros(ceil(num_bins),1);
  
  h(i)=subplot(4,3,i);
  
  plotmatrix(current_rpm,current_torque)
  
  end
  
  linkaxes(h,'xy');
  
  axis([0 30 0 8]);
  </code></pre>