title: gnuplot - change scale of axis
body: <p>I have the following data in <code>cr.dat</code></p>
  
  <pre><code>0.03 0.0227352
  0.02 0.0276084
  0.01 0.0386684
  0.009 0.0407197
  0.008 0.0431688
  0.007 0.04612
  0.006 0.0497781
  0.005 0.0545085
  0.004 0.0608376
  0.003 0.069918
  0.002 0.0844434
  </code></pre>
  
  <p>And the following plot script</p>
  
  <pre><code>set xtics ( 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.01, 0.02, 0.03)
  plot "cr.dat" u 1:2 title "cr";
  </code></pre>
  
  <p>Which produces this image
  <img src="https://s22.postimg.org/y0qdop6kh/test.png" alt="plot cr"></p>
  
  <p>Is it possible to remove the large spaces between 0.01, 0.02 and 0.03?</p>
  
  <p>I hoped the <code>set xtics</code> command would plot the given tics evenly along the x axis. But it doesn't.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I tried the in <a href="https://stackoverflow.com/questions/13507565/irregular-gnuplot-x-values">Irregular gnuplot x-values</a> suggested solution with <code>xticlabels</code> but this produces a strange x and y axis.</p>
  
  <p>The new plot script is</p>
  
  <pre><code>set xtics ( 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.01, 0.02, 0.03)
  plot "cr.dat" u xticlabels(1):2 title "cr";
  </code></pre>
  
  <p>end the result
  <img src="https://s24.postimg.org/6l8r3yel1/test.png" alt="plot cr2"></p>
  
  <p>Did I misunderstand something?</p>