title: Changing the tick color only in Matlab figures
body: <p>I have a figure and I'd like to be able to show the ticks positions (in white) but <strong>keep</strong> the tick labels (in black). For example, if you try:</p>
  
  <pre><code>imagesc(abs(peaks(10))); colormap('bone');
  set(gca,'XTick',0:pi:2*pi,'XTickLabel',{'0', 'p', '2p'},'fontname','symbol');
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/oR2Wz.png" alt="enter image description here"></p>
  
  <p>You can see that the tick positions can't be seen. Matlab's documentation tells that the handle <code>YColor</code> and <code>XColor</code> can be used, but they also control the color of the tick labels. For example:
  <img src="https://i.stack.imgur.com/1QjC7.png" alt="enter image description here"></p>
  
  <p>I have tried to get the tick out, but it doesn't look good. I tried playing with an approach similar to the one discussed <a href="https://stackoverflow.com/questions/15553720/matlab-remove-only-top-and-right-ticks-with-leaving-box-on">here</a>, but without success. The last way I can think of is to "manually" rewrite the labels as text objects...  Would appreciate your input.</p>