Commit 543d56f0 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

reverted plotitem bug

parent 96d12672
......@@ -146,11 +146,12 @@ class PlotItem(GraphicsWidget):
## Wrap a few methods from viewBox
#for m in [
#'setXRange', 'setYRange', 'setXLink', 'setYLink',
#'setRange', 'autoRange', 'viewRect', 'setMouseEnabled',
#'enableAutoRange', 'disableAutoRange', 'setAspectLocked']:
#setattr(self, m, getattr(self.vb, m))
for m in [
'setXRange', 'setYRange', 'setXLink', 'setYLink',
'setRange', 'autoRange', 'viewRect', 'setMouseEnabled',
'enableAutoRange', 'disableAutoRange', 'setAspectLocked',
'register', 'unregister']:
setattr(self, m, getattr(self.vb, m))
self.items = []
self.curves = []
......@@ -296,8 +297,9 @@ class PlotItem(GraphicsWidget):
#QtGui.QGraphicsWidget.paint(self, *args)
#prof.finish()
def __getattr__(self, attr): ## wrap ms
return getattr(self.vb, attr)
## bad idea.
#def __getattr__(self, attr): ## wrap ms
#return getattr(self.vb, attr)
def close(self):
#print "delete", self
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment