title: Strech image to window size in pyqtgraph
body: <p>I'm currently trying to create a PyQtGraph gui to plot an image repeatedly as new data comes in using code similar to this:</p>
  
  <pre><code>self.app = QtGui.QApplication([])
  self.win = QtGui.QMainWindow()
  self.win.resize(800, 600)
  self.imv = pg.ImageView()
  self.win.setCentralWidget(self.imv)
  self.win.setWindowTitle('My Title')
  self.timer = QtCore.QTimer()
  self.timer.timeout.connect(self.check_for_new_data_and_replot)
  self.timer.start(100)
  self.win.show()
  </code></pre>
  
  <p>then each time I get new data I draw the image:</p>
  
  <pre><code>self.imv.setImage(self.data_array)
  </code></pre>
  
  <p>One problem I'm running into is that my data array usually has a skewed aspect ratio, i.e. it is usually really "tall and skinny" or "short and fat", and the image that is plotted has the same proportions. </p>
  
  <p>Is there a way to stretch the image to fit the window? I've looked through the documentation for <a href="http://www.pyqtgraph.org/documentation/widgets/imageview.html" rel="nofollow">ImageView</a> and <a href="http://www.pyqtgraph.org/documentation/graphicsItems/imageitem.html" rel="nofollow">ImageItem</a>, but can't find what I need. (Perhaps it is there, but I am having trouble identifying it.)</p>