'When initializing PlotWidget, *parent* and *background* are passed to
:func:`GraphicsWidget.__init__() <pyqtgraph.GraphicsWidget.__init__>`
and all others are passed
to :func:`PlotItem.__init__() <pyqtgraph.PlotItem.__init__>`.'

def __init__(self, parent=None, background='default', **kargs):

    GraphicsView.__init__(self, parent, background=background)
    self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
    self.enableMouse(False)
    self.plotItem = PlotItem(**kargs)
    self.setCentralItem(self.plotItem)
    for m in ['addItem', 'removeItem', 'autoRange', 'clear', 'setXRange', 'setYRange', 'setRange', 'setAspectLocked', 'setMouseEnabled', 'setXLink', 'setYLink', 'enableAutoRange', 'disableAutoRange', 'setLimits', 'register', 'unregister', 'viewRect']:
        setattr(self, m, getattr(self.plotItem, m))
    self.plotItem.sigRangeChanged.connect(self.viewRangeChanged)
