title: How to adjust the distance between the y-label and the y-axis in Matlab?
body: <p>In Matlab, if we do not rotate the y-label that contains several letters, the label may overlap with the tick numbers or even the y-axis. We can increase the distance between the y-label and the y-axis in the following way:</p>
  
  <pre><code>plot(A, B);
  y=ylabel('xxx', 'rot', 0);  % do not rotate the y label
  set(y, 'position', get(y,'position')-[0.1,0,0]);  % shift the y label to the left by 0.1
  </code></pre>
  
  <p>However, a problem is that if we change <code>axis([0 1 0 25])</code> to <code>axis([0 10 0 25])</code>, the distance between the y-label and the y-axis will also change. Is there a convenient way to shift the y-label slightly to the left, but keep the distance between the y-label and the y-axis constant when we change the range of x?</p>