Set path attr in case ErrorBarItem initialized without data

This commit is contained in:
Kenneth Lyons 2019-05-03 18:45:15 -07:00
parent 51b3201564
commit 2817b95c93

View File

@ -59,6 +59,7 @@ class ErrorBarItem(GraphicsObject):
x, y = self.opts['x'], self.opts['y']
if x is None or y is None:
self.path = p
return
beam = self.opts['beam']
@ -146,4 +147,4 @@ class ErrorBarItem(GraphicsObject):
self.drawPath()
return self.path.boundingRect()