title: How to set a fixed number of ticks on QwtPlot
body: <p>I'm having some trouble with <code>QwtPlot</code> ticks.</p>
  
  <p>The X axis of my <code>QwtPlot</code> is this:</p>
  
  <p><a href="https://i.stack.imgur.com/eTtGv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eTtGv.png" alt="enter image description here"></a></p>
  
  <p>I'm setting the <strong>AxisMaxMajor</strong> to 24:</p>
  
  <pre><code>dataPlot-&gt;setAxisMaxMajor(QwtPlot::xBottom, 24);
  </code></pre>
  
  <p>But it does not solve my problem.</p>
  
  <p>I need exactly 23 ticks (1~23) to represent each hour of the day. How can I do that?</p>
  
  <p>Qwt 6.1.0</p>
  
  <p>Qt 5.3.2</p>