title: OpenCV (Python) video subplots
body: <p>I am trying to show two OpenCV video feeds in the same figure as subplots, but couldn't find how to do it. When I try using <code>plt.imshow(...), plt.show()</code>, the window won't even appear. When I try using <code>cv2.imshow(...)</code>, it shows two independent figures. What I actually want are subplots :(. Any help? </p>
  
  <p>Here is the code that I have so far:</p>
  
  <pre><code>import numpy as np
  import cv2
  import matplotlib.pyplot as plt
  
  cap = cv2.VideoCapture(0)
  ret, frame = cap.read()
  
  while(True):
      ret, frame = cap.read()
      channels = cv2.split(frame)
      frame_merge = cv2.merge(channels)
  
      #~ subplot(211), plt.imshow(frame)
      #~ subplot(212), plt.imshow(frame_merged)
      cv2.imshow('frame',frame)
      cv2.imshow('frame merged', frame_merge)
      k = cv2.waitKey(30) &amp; 0xff
      if k == 27:
          break
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>
  
  <p><strong>UPDATE:</strong> Ideally the output should look something like that:</p>
  
  <p><a href="https://i.stack.imgur.com/UE4m7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UE4m7.jpg" alt="Subplots for OpenCV videos"></a></p>