title: Qwt plot auto scale not working
body: <p>I'm trying to plot some data using qt 4.8 and qwt 6, but my curves doesn't scales over plot (<a href="https://i.stack.imgur.com/5MSAk.png" rel="nofollow noreferrer">1</a>).</p>
  
  <p>This is how I attach curves to plot:</p>
  
  <pre><code>curves[moduleIndex][channelIndex]-&gt;setSamples(samples, data);
  curves[moduleIndex][channelIndex]-&gt;attach(plots[moduleIndex][channelIndex]);
  </code></pre>
  
  <p>samples and data is QVectors and samples.size() is equal to data.size()</p>
  
  <p><code>plots[moduleIndex][channelIndex]-&gt;axisAutoScale(QwtPlot::xBottom)</code> returns true, so <code>autoScale</code> is enabled.</p>
  
  <p>So am I missing something?</p>
  
  <p><img src="https://i.stack.imgur.com/5MSAk.png" alt="qwt plot auto scale"></p>
  
  <p><strong>UPDATE</strong>: I thought that the problem occures because disabled axis</p>
  
  <pre><code>plots[i][j]-&gt;enableAxis(QwtPlot::yLeft, false);
  plots[i][j]-&gt;enableAxis(QwtPlot::xBottom, false);
  </code></pre>
  
  <p>But I've commented it out and it didn't help.</p>
  
  <p><img src="https://i.stack.imgur.com/gtcTU.png" alt="qwt plot auto scale with axis"></p>