title: How to re-scale the x-axis while limiting the value of y-axis with gnuplot?
body: <p>I'm plotting in the way like,</p>
  
  <pre><code>$ gnuplot -persist -e 'plot "m.dat" u 1:(($2&gt;=4&amp;&amp;$2&lt;=6)?$2:1/0) with line'
  $ cat m.dat
  1 2
  2 3
  3 4
  4 5
  5 6
  6 7
  7 8
  9 10
  </code></pre>
  
  <p>You can see the y-axis scaled good, but the x-axis doesn't scale. How can I make x-axis scaled too?</p>
  
  <p><a href="https://i.stack.imgur.com/dsaKi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dsaKi.png" alt="enter image description here"></a></p>