title: Visualization of wavelets coefficients using python
body: <p>I need to prepare a plot similar to figure below using coefficients of details of a wavelet transform.I am trying for more than 2 weeks to find how I can do it.</p>
  
  <p><a href="https://i.stack.imgur.com/jgRhY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jgRhY.png" alt="enter image description here"></a></p>
  
  <p>This plot represents coefficients of details of a wavelet transformation at different levels (1, 2, 3, and 4).The coefficients of details (cA4,cD4,cD3,cD2,cD1=coeffs) are a 1D array and each has different size.</p>
  
  <p>&lt;</p>
  
  <pre><code>def wavelet(data):
      waveletname = 'sym5'
      coeffs = wavedec(data, 'sym5', level=5)
      cA5,cD5,cD4,cD3,cD2,cD1=coeffs
  </code></pre>
  
  <p>></p>