title: Plotting two functions with different sample rate
body: <p>I want to plot two functions: sin(x) and a sampled and quantized sin(x). The script is simple</p>
  
  <pre><code>set xtic 1
  set ytic 1
  f1(x) = sin(x/16*2*pi)*8
  round(x) = x - floor(x) &lt; 0.5 ? floor(x) : ceil(x)
  plot [0:16] [-8.5:8.5] f1(x) with lines,  round(f1(x)) with steps lt 2
  </code></pre>
  
  <p>The problem is, I want the sin(x) to be smooth and the sampled an quantized sin(x) sampled at intervals of 1. The problem is, I can't find any option to do so. Adding</p>
  
  <pre><code>set sample 21
  </code></pre>
  
  <p>nearly works, but the sin(x) does not look smooth enough. Is there any way to make it better?</p>