title: How to draw a haar wavelet plot using pywt?
body: <p>I'm only in the beginning of learning wavelet transformation, so I have such naive question.</p>
  
  <p>I have quite simple scaling function with only two non-zero coefficients: </p>
  
  <p><a href="https://i.stack.imgur.com/NSDo3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NSDo3.png" alt="enter image description here"></a></p>
  
  <pre><code>h(0) = h(1) = 1/ sqrt(2)
  </code></pre>
  
  <p>I have calculated the average and difference part on my own, and now I want to draw a plot to describe my DWT.</p>
  
  <p>How to show this plot using <code>pywt</code> library on interval [0,1]</p>
  
  <p>My vector is <code>a = [8,2,1,6,3,−9,7,4]</code></p>
  
  <p>My graph, should look like something similar to this one: <a href="https://yadi.sk/i/3MIfn3tF3NRFsB" rel="nofollow noreferrer">https://yadi.sk/i/3MIfn3tF3NRFsB</a></p>