title: Gnuplot x-axis resolution
body: <p>I'm trying to plot in <strong>gnuplot</strong> a log-periodic function: cos((log(abs(t-Tc))*PI/log10(lambda) ) + phi)<br /><br />
  But because of the nature of log(x) near to x=0, the plot is getting ugly.</p>
  
  <p>How to plot a log-periodic function in gnuplot so it looks nice?</p>
  
  <p>My plot script looks like this:</p>
  
  <pre><code>phi = 1
  TcFormated = 9.67e+8
  lambda = 2
  PI = 3.1415
  
  g(t) = abs(cos((log(abs(t-TcFormated))*PI/log10(lambda) ) + phi))
  
  set tmargin at screen 0.01
  set bmargin at screen 0.99
  set lmargin at screen 0.01
  set rmargin at screen 0.99
  
  set xrange [8.4e+8:1.04e+9]
  set yrange [0:1]
  unset xtics
  unset ytics
  plot g(x) t '' w l
  
  pause -1
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/kpDeb.png" alt="log-periodic function"></p>
  
  <p><strong>After setting:</strong></p>
  
  <pre><code>set samples 10000
  </code></pre>
  
  <p>I got a much better looking graph:
  <img src="https://i.stack.imgur.com/r4aVn.png" alt="log-periodic function with set samples 10000"></p>